RE: [PHP] Multi-Step Script

From: Date: Wed, 14 Mar 2001 07:07:30 +0000
Subject: RE: [PHP] Multi-Step Script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-43782@lists.php.net to get a copy of this message
Good point Kevin Leavell kevin@ldigitaldesign.com P 406.829.8989 C 406.240.4595 ---> -----Original Message----- ---> From: Jason Murray [mailto:Jason.Murray@melbourneit.com.au] ---> Sent: Tuesday, March 13, 2001 11:59 PM ---> To: 'Leavell Digital Design'; php-general@lists.php.net ---> Subject: RE: [PHP] Multi-Step Script ---> ---> ---> > 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 ---> > } ---> ---> Actually - do it in the reverse order, because then you can do error ---> checking and gracefully "drop back" to a previous step if there's an ---> error. ---> ---> ie: ---> ---> if ($step == 3) ---> { ---> // do stuff ---> } ---> if ($step == 2) ---> { ---> // do stuff ---> } ---> if (!$step) ---> { ---> // do stuff ---> } ---> ---> Jason ---> ---> -- ---> 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 (#43782) next »