Insert values in database with check box in HTML and PHP

Insert values in the database with a checkbox in HTML and PHP

In this tutorial, we will try to understand the program of inserting the values in the database with the checkbox in HTML and PHP.

<form method="post">
<input type="checkbox" name="zz" value="male"> male<br> 
<input type="submit" name="gender" value="submit"  />
mysql_query("insert into student(marks) VALUES('$a')");
Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.