<?php
if(isset($_POST['submit']))
{
mysql_query("update tablename set clname=value where clname=value");
}
?>
<table>
<tr>
<td><form method="post" action="">
<input type="checkbox" name="name" value="1"<?php if($data['name'] == '1') echo 'checked'; ?>/>
<input type="submit" name="submit" >
</form></td></tr>
</table>
if(isset($_POST['submit']))
{
mysql_query("update tablename set clname=value where clname=value");
}
?>
<table>
<tr>
<td><form method="post" action="">
<input type="checkbox" name="name" value="1"<?php if($data['name'] == '1') echo 'checked'; ?>/>
<input type="submit" name="submit" >
</form></td></tr>
</table>
No comments:
Post a Comment