hi all,
i am having a page where there are some checkboxes in it. i cant give exact number because i am getting that from database. so now if the user didnt check atleast one check box i need to get a popup. so can any one help me please..its urgent..
Thank u..
i am having a page where there are some checkboxes in it. i cant give exact number because i am getting that from database. so now if the user didnt check atleast one check box i need to get a popup. so can any one help me please..its urgent..
Thank u..
Code:
<table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 500px" bordercolor="red">
<tr>
<th></th>
<th style="color: navy;">Userid</th>
<th style="color: navy;">Username</th>
</tr>
<?php
$sno=1;
while($row=mysql_fetch_array($result2, MYSQL_ASSOC)){
?>
<tr>
<td><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $row['userid']; ?>"></td>
<td><? echo $row['userid']; ?></td>
<td><? echo $row['username'];?></td>
</tr>
<?php
$sno=$sno+1;
}
?>
</table>
Comment