FW: [PHP] Multi-Step Script

From: Date: Wed, 14 Mar 2001 06:57:42 +0000
Subject: FW: [PHP] Multi-Step Script
Groups: php.general 
Request: Send a blank email to php-general+get-43779@lists.php.net to get a copy of this message
use if statements if( $submit ){ print "I love Montana"; >>>put form #2 in here w/ action = $PHP_SELF make sure you set $submit2 to some value ) elseif( $submit2 ){ print "Part two of script"; } else{ >>>put your form in here w/ action= $PHP_SELF } This is a quicky but hopefully you get the idea. Just assign values to different variables. Post the info back to $PHP_SELF and test for the existence of those variables in your if statements. Your single php script could span an unlimited number of pages (as far as the end user is concerned). Kevin Leavell kevin@ldigitaldesign.com P 406.829.8989 C 406.240.4595 ---> -----Original Message----- ---> From: Andrew V. Romero [mailto:Rom77ero@pharmacy.arizona.edu] ---> Sent: Tuesday, March 13, 2001 9:59 PM ---> To: php-general@lists.php.net ---> Subject: [PHP] Multi-Step Script ---> ---> ---> Is it possible to use different parts of one php script for multiple ---> html forms? I am not seeing how people create multiple pages of html ---> forms with each form importing information from the previous form. ---> Right now, for each html form page I have, I create one php script to ---> handle it but it would be nice to have just one php script in ---> which only ---> certain parts execute depending on have variables have ---> assignments. One ---> way I was thinking of doing this is to have the html forms just keep ---> posting the information to itself whenever the submit button is hit and ---> then using a series of if else statements to evaluate where the program ---> is in relationship to the forms, would this type of system work? ---> What do you guys do? ---> -Andrew V. Romero ---> To reply personally, remove all numbers from address. ---> ---> ---> -- ---> PHP General Mailing List (http://www.php.net/) ---> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net ---> For additional commands, e-mail: php-general-help@lists.php.net ---> To contact the list administrators, e-mail: ---> php-list-admin@lists.php.net

« previous php.general (#43779) next »