0

i m creating a new row onclick containing 3 drop downs in it,
if i add 3 rows drop downs are shown but thier names are same, how can i change the name of every drop down in each row so that it can be handled on php page?

any help

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by diafol
0

Could you rephrase that?

What's a new row onclick? Which row?

If this is what you mean:

<select name="drop1[]">...</select><select name="drop2[]">...</select><select name="drop3[]">...</select>

<select name="drop1[]">...</select><select name="drop2[]">...</select><select name="drop3[]">...</select>

THat will work as the $_POST var will give the index (first row = 0, second row = 1 etc):

$_POST['drop1'][0] = first row first drop


$_POST['drop3'][3] = fourth row third drop
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.