Posted by Karl Groves on 03/23/06 23:30
niftyhawk@gmail.com wrote in news:1143148573.335848.147620
@i40g2000cwc.googlegroups.com:
> Hi All,
>
> I have a php page say "abc.php" generating the following HTML. I am
> posting the form action to another php page say "TestCheckbox.php".
>
> How do I retrieve in "TestCheckbox.php" which checkboxes are checked in
> "abc.php"?
>
> abc.php
> ========
>
> <form action="TestCheckbox.php" method="POST" name="TestCheck">
> <INPUT Type="CHECKBOX" Name="RecordNumber" Value="100">
> <INPUT Type="CHECKBOX" Name="RecordNumber" Value="200">
> <INPUT Type="CHECKBOX" Name="RecordNumber" Value="300">
> <INPUT Type="CHECKBOX" Name="RecordNumber" Value="400">
> <INPUT Type="CHECKBOX" Name="RecordNumber" Value="500">
> <input type=submit name="submit">
> </form>
>
Use:
Name="RecordNumber[]"
This will insert the values into an array.
--
Karl Groves
http://karlcore.com
http://chevelle.karlcore.com
Accessibility Discussion List: http://smallerurl.com/?id=6p764du
[Back to original message]
|