How to Differentiate in groups of checkboxes
Posted: Wed Feb 09, 2005 6:48 am
Hi every One !
i have problem in fetching in retriving values using post method.
like here is some code:
now on the 2ndpage.php
i want to fetch only thoese values that are checked
problme is that i have 2 types of check boxes
and i want to decide that the check box is checked or not and 2nd thing that i want to differentiate that checkbox belonges to which group.
Help Please ::
i have problem in fetching in retriving values using post method.
like here is some code:
Code: Select all
<form name="form1" method="post" action="2ndpage.php">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td>
<input name="1" type="checkbox" id="1" value="checkbox">
one</td>
</tr>
<tr>
<td>
<input name="2" type="checkbox" id="2" value="checkbox">
two</td>
</tr>
<tr>
<td>
<input name="3" type="checkbox" id="3" value="checkbox">
three</td>
</tr>
<tr>
<td>
<input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
</form>i want to fetch only thoese values that are checked
problme is that i have 2 types of check boxes
and i want to decide that the check box is checked or not and 2nd thing that i want to differentiate that checkbox belonges to which group.
Help Please ::