Search This Blog

Sunday, 4 October 2015

Update check box value into database using php.

<?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>

No comments:

Post a Comment