Re: multiple entry forms !!
| From: | Philip Hallstrom | Date: | Mon, 27 Jan 2003 23:35:52 +0000 |
| Subject: | Re: multiple entry forms !! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133314@lists.php.net to get a copy of this message | ||
Use several smaller forms and store the results of each into a session
variable.
Also store a "got-results-for-form-1" (through 7) that gets set for each
of the 7 forms. Once all 7 are set you can do the final processing.
Set the action of each form to say "save.php" and pass in a "saving_what"
field". save.php can then do a switch on the saving_what field to
determine what needs checking/storing/etc.
Works good for me.
On Mon, 27 Jan 2003, scott wrote:
> hi
>
> looking for some advice
>
> I have a site in progress. user to it have to enter a LOT of information (it
> will contain a club directory)
>
> in order to try and make it a less unpleasant experience for the user, I
> want to give them 7 smaller input forms, each one following the other
>
> what would be the correct way to do this, one very large, complex coded php
> conditional form that does everything, or several smaller ones ?
>
> if I use one form, it will conatin rather a lot of code, but execution would
> all be handled by the form itself
>
> but if I use multiple smaller forms, each form would need to process the
> previous forms input, and then display it's inputs for entry
>
> I am also using sessions, which adds a little to complexity
>
> any general good coding practice tips/links would be helpful
>
> thanks
>
> _scott
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>