Thanks a lot Alex!

Tim Taubert

   Tim Taubert | [EMAIL PROTECTED] |

.o] -----Original Message-----
.o] From: Alex Piaz [mailto:[EMAIL PROTECTED]]
.o] Sent: Wednesday, July 04, 2001 8:01 PM
.o] Subject: Re: [PHP] Formular problem
.o] At 19:19 4/7/2001 +0200, you wrote:
.o] >hi
.o] >i have a problem with variables received from a formular..
.o] >imagine this is the important part of the form:
.o] >
.o] >         <select multiple name="extras">
.o] >           <option>Cheese</option>
.o] >           <option>Tomatoes</option>
.o] >           <option>Onions</option>
.o] >         </select>
.o] >
.o] >and now.. what does the variable $extras look like? is it an array? don't 
.o] >have any imaginations...
.o] Hi Tim!
.o] If you want to perform a multiple select on a form like yours, you should 
.o] name it as extras[]. It turns the variable into an array, so you can acess 
.o] them just calling $extras[0] and so.
.o] If you call the form simply "extras", the variable will be a string, not an 
.o] array. The brackets [] are the point on this subject.
.o] Regards
.o] Alex Piaz
.o] Webmaster
.o] Global Map Internet Marketing
.o] "Be cool or be cast out"
.o] ****************************************************************

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to