|
-
Feb 5th, 2003, 05:23 PM
#1
Thread Starter
Fanatic Member
getting all values from a checkbox with same name
I have a form with items dynamically created and they all are given the same name but different values. When I read the name on the recieving page I only get the last value that was checked. How do I read all values passed if checked?
Here is my form code:
<form action="comparetest.php" method="get" name="frmTest" id="frmTest">
<table width="1" border="0">
<tr>
<td>Selection1</td>
<td><input name="chkCompare" type="checkbox" id="chkCompare" value="1"></td>
</tr>
<tr>
<td>Selection2</td>
<td><input name="chkCompare" type="checkbox" id="chkCompare" value="2"></td>
</tr>
<tr>
<td>Selection3</td>
<td><input name="chkCompare" type="checkbox" id="chkCompare" value="3"></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Submit"></td>
<td> </td>
</tr>
</table>
<p> </p>
</form>
Thanks for any help or tips.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|