Use switch with includes for each step.
switch()
{
case 1:
include(filestep1.php)
break;
case 2:
include(filestep2.php)
break;
default:
include(form.php)
}
but this way you can have a hierarchy....
and possibly run form one section into the next..
switch($step)
{
case 1:
include(filestep1.php) //list products
case 2:
include(filestep2.php) //list categories
break;
default:
include(form.php) //show list of options.
}
At 09:59 PM 3/13/01 -0700, you wrote:
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
##########################################################
# Rick St Jean,
# [EMAIL PROTECTED]
# President of Design Shark,
# http://www.designshark.com/
# Quick Contact: http://www.designshark.com/messaging.ihtml
# Tel: 905-684-2952
##########################################################
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]