View Full Version : Help - parse a query string to populate form...

08-14-2007, 01:04 AM

I have created a Content management System that writes content to flat files. I have a single PHP page that calls/opens each flat file and places its content all around the page.

I want to send a URL to people such as (www.??????.com/whatever.php?flatfile&firstname=mike&lastname=jones) where the "whatever.php is the landing page, the "flatfile" is the name of the text file that supplies the content, the "firstname" and lastname" will populate a form found on the php page. Can this be done? And if so, can you help me out?

I used the following to parse the "flatfile" from the URL, but I cannot seem to attach anything after that. Hopefully, it is something easy, but I give up. Please help!

$page = basename($_SERVER['QUERY_STRING']);
} else {
} else {

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum