Reply to Re: getting multiple data from <select>

Your name:

Reply:


Posted by Sonnich on 02/06/07 15:41

On Feb 6, 4:36 pm, "P Pulkkinen"
<perttu.POISTATAMA.pulkki...@POISTATAMA.elisanet.fi> wrote:
> "Sonnich" <sonnich.jen...@elektrobit.com> kirjoitti
> viestissä:1170772126.596200.67...@s48g2000cws.googlegroups.com...
>
> > Can anyone give me a quick hint for this?
> > Say, I have: <SELECT NAME="opt3" SIZE="15" multiple>
> > Then I'd like to list the items selected...
> > echo $_POST["opt3"];
> > but this gives only the first one
> > how do I get the rest?
>
> <SELECT NAME="opt3()" SIZE="15" multiple>
>
> Parenthesis is the point: NAME="opt3()"
>
> Then php knows than an array is coming. This is not because html would
> require that, but because php does. This applies not only to select
> elements, but checkboxes as well for example. Or sometimes you may want to
> send some array in hidden fields.

eeehhh I tried to play a bit around with this, but do I also need a
trick to read it out?

BR
Sonnich

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация