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]
|