Assume the following file is named "this_script.php": This is all in ONE file.
<?php if (isset($submit) ) { print "$mytext<BR>\n"; do some other stuff exit; } ?> <HTML> <HEAD> </HEAD> <BODY> <FORM method=post action="./this_script.php"> <INPUT type=text name=mytext><BR> <INPUT type=submit name=submit value=<Submit"> </FORM </BODY> </HTML> -----Original Message----- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 4:19 AM To: PHP General List (PHP.NET) Subject: [PHP] Includes 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php