Re: Form handling

From: Date: Sat, 14 May 2005 01:48:43 +0000
Subject: Re: Form handling
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-215191@lists.php.net to get a copy of this message
> What other methods would be good to use? Using a giant if statement? Did you read my code for this? It consisted of two lines, which basicly did the same thing as your massive ugly switch statment. It also does a limited amount of error-checking, in that it checks to make sure that the file actually exists. > However, since I'm anal, I want the entire page to be named index.php, > which is why I am stuck on the idea of making each page's "target" set > to index.php WITH $_SESSION['step'] being set to 1, 2, 3, whichever is > the next step in the process. If this is bad, what are my alternatives now? If you ask for alternatives, and then turn them down on the basis that you're anal, well, I give up. You could also place the step in form hidden values.

« previous php.general (#215191) next »