RE: [PHP] Formular problem
| From: | Tim Taubert | Date: | Wed, 04 Jul 2001 17:37:02 +0000 |
| Subject: | RE: [PHP] Formular problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56205@lists.php.net to get a copy of this message | ||
Thanks a lot Alex!
Tim Taubert
---------------------------------------------------------------------
Tim Taubert | timtaubert@web.de | http://www.shogunat.com/rg/
---------------------------------------------------------------------
.o] -----Original Message-----
.o] From: Alex Piaz [mailto:webmaster@globalmap.com]
.o] Sent: Wednesday, July 04, 2001 8:01 PM
.o] To: timtaubert@web.de
.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]