I need help posting data from HTML forms to a MySql database, especially checkboxes, I don't have a problem connecting to the database but I have a problem posting checkbox values and text field data at the same time, please assist me with the PHP code.
I have the following code.
<form action="action_page.php">
<fieldset>
<legend>Personal information:</legend>
First name:<br>
<input type="text" name="firstname" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
</fieldset>
<fieldset>
<legend>Course:</legend>
<input type="checkbox" name="french" value="French"> French
<br>
<input type="checkbox" name="german" value="German"> German
<br>
<input type="checkbox" name="spanish" value="Spanish"> Spanish
</fieldset>
<input type="submit" value="Submit">
</form>