Re: Includes

From: Date: Fri, 05 Apr 2002 11:08:23 +0000
Subject: Re: Includes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91686@lists.php.net to get a copy of this message
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 maxim@phpbeginner.com 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 maxim@phpbeginner.com

« previous php.general (#91686) next »