Reply to Re: Elements with the same name

Your name:

Reply:


Posted by Erwin Moller on 02/07/06 10:52

Leszek wrote:

> Hi.
>
> <div id="id1">
> <select name="name">
> //options
> </select>
> </div>
>
> <div id="id2">
> <select name="name">
> //options
> </select>
> </div>
>
> Is it ok to have two or more select lists with the same name? (Each in
> different div)

No.
The receiving scipt (the one mentioned in the action of the form) will have
trouble telling them appart.

> Is is possible to check which value from which select was chosen?

Not if they have the same name!
Why not just name them differently?

> For example using php $_POST
> or there will be just one value remembered because all select list have
> the same name?

indeed.

>
> Thanks.
> Leszek


regards,
Erwin Moller

[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

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