Re: php and forms question

From: Date: Wed, 31 Jan 2001 04:15:40 +0000
Subject: Re: php and forms question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37412@lists.php.net to get a copy of this message
Hia Chip, If I were you (but I'm not, thankfully for both of us), I would use a multiple select, and, maybe sessions. I think sessions are better/easier than hidden fields, but only in php4. Multiple selects are nice. They come back as an array, which is pretty easy to deal with by using a loop. Jeff "Chip" <chip@wiegand.org> wrote in message news:3A778CF2.D6CDBAAE@wiegand.org... > I am trying to build a multi-part form and am > using the example from the book Beginning PHP4 > by Choi, Kent, Lea, et al. in chapter 8. > Here's what I want to do - > form_page1 - 10 input fields size=3 > then onwards to > form_page2 - 5 input fields size=3 > then onwards to > form_page3 - 5 input fields size=3 > (and about 5 or 6 pages more) > form_page10 has submit button > then the thankyou page with a list of the > items chosen on the previous pages. > > These items will be brochures, the text-boxes > are for a quantity. Most people will only want > one but our authorized dealers can order as > many as they need, whence the need for the > size being 3 characters. > > In the example in the book they use a drop- > down list, so only one item on the list can be > chosen, this won't work for me. > > How do I store all the choices from each subsequent > page and bring them all together on the final page? > > Thankyou, > > -- > Chip Wiegand > Alternative Operating Systems > www.wiegand.org > > -- > 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 (#37412) next »