Form Processing - Multiple inputs of the same name
| From: | Mike Potter | Date: | Fri, 31 Jan 2003 19:17:38 +0000 |
| Subject: | Form Processing - Multiple inputs of the same name | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133815@lists.php.net to get a copy of this message | ||
Is it possible to pass an group of input boxes of the same name, then get
the values of all the checked boxes or filled out textboxes?
How do I get ALL the IDs passed. Right now it only passes the last ID. Do
I really have to give them all unique names?
For example...
<html>
<head>
</head>
<body>
<form action="testform.php" method="post">
<input type="checkbox" value="0"
name="DeleteIDs"></input> Jon Smith<br>
<input type="checkbox" value="1"
name="DeleteIDs"></input> David Callow<br>
<input type="checkbox" value="2"
name="DeleteIDs"></input> Peter Parker<br>
.
.
.
<input type="submit" value="Delete Users">
</form>
</body>
</html>
This list of DeleteIDs will be build dynamically. I want the user to be
able to check the boxes they want to delete and pull the IDs on the posted
page.
How do I get ALL the IDs passed. Right now it only passes the last ID.
Thanks,
Mike