Form elements of the same name
In ASP if I have a form with elements of the same name I get the posted information for that element as
data1,data2,data3,data4
in PHP I only get Data1 or one value returned
I worked around by renaming the elements differently but is not really the solution that provides me with flexible code.
Does php return same named elements in one shot or just one element?
I'm testing on Windows 2000 with Apache, php4
From elements one more time....
//Simplified Form example
<form action>
<input type=text name=item value=1>
<input type=text name=item value=2>
<input type=text name=item value=3>
<input type=text name=item value=4>
</form>
In ASP I can go Items=request.form("item")
and Items will contain "1,2,3,4"
in PHP I only get a single value returned. I can't remember it is either "1" or "4" but not all.
I've tried to see if the data was in an array as in
below, but no luck.
echo $item(0)
echo $item(1)
echo $item(3)
echo $item(4)