Thanks a lot Alex!
Tim Taubert
---------------------------------------------------------------------
Tim Taubert | [EMAIL PROTECTED] | http://www.shogunat.com/rg/
---------------------------------------------------------------------
.o] -----Original Message-----
.o] From: Alex Piaz [mailto:[EMAIL PROTECTED]]
.o] Sent: Wednesday, July 04, 2001 8:01 PM
.o] To: [EMAIL PROTECTED]
.o] Subject: Re: [PHP] Formular problem
.o]
.o]
.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]
.o] Hi Tim!
.o]
.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]
.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]
.o] Regards
.o]
.o]
.o] Alex Piaz
.o] Webmaster
.o] Global Map Internet Marketing
.o] http://www.globalmap.com
.o] "Be cool or be cast out"
.o] ****************************************************************
.o]
--
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]