Hello all,
I have a form that has multiple rows. I want to have a hidden input
that will have the same name in all rows, but the value will hold an
unique id for each row. With ASP, I can name all of the hidden inputs
the same and I will receive a comma separated string containing the
values. How can I do the same thing with PHP?
For example:
<form action="process.php" method="POST">
<input type=hidden name=id value=1>
<input type=hidden name=id value=2>
<input type=hidden name=id value=3>
<input type=hidden name=id value=4>
</form>
In my processing page with ASP the variable contents look like:
Response.Write("The value of id is: '" + id);
Which would display: 1,2,3,4
In php:
echo($id);
displays: 4
Any body have a solution? Thanks in advance.
-- tale