we still use include();
setup.php has something like: if(file_exists($page) and ...more...controls..) include_once $page; then the $page.php is where you have a part of your site. You can pass $page as the GET variable: setup.php?page=page.php and so on.... Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) www.PHPBeginner.com [EMAIL PROTECTED] Sebastian A. writes: > Lately I have noticed many scripts that all consist of one file even though > they create the appearance of many pages. For example, you would open > setup.php and a form would appear. Then after you complete the form a new > page appears with the results of your form, however the URL is still > setup.php. So basically you can make complicated forms span only one file > instead of having separate file to gather, display and save the data, how is > this done? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) www.PHPBeginner.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php