Hello,

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 (http://www.??????.com/whatever.php?f...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!

<?php
$page = basename($_SERVER['QUERY_STRING']);
if(!$page){
include('contentstandard.php');
} else {
if(file_exists('pages/'.$page.'.txt')){
include('contentgen.php');
} else {
include('nocontent.php');
}
}
?>