I've been altering code back and forth for an hour or so to get my form to send data to a mysql database if a radio button is checked. Right now it is not filling the table. other tables are getting populated.
Here is the part of the html of the form I cannot get to populate
<p><strong>Monday</strong><input type="radio" name="monday" value="monday"/><br/>
<strong>Start Time (HH:MM): </strong>
<select name="mon_start_hour">
<option value="12">12</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
</select>
<select name="mon_start_minute">
<option value="00">00</option>
<option value="30">30</option>
</select>
<strong> End Time (HH:MM):</strong>
<select name="mon_end_hour">
<option value="12">12</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
</select>
<select name="mon_end_minute">
<option value="00">00</option>
<option value="30">30</option>
</select>
<br/>
<strong>Drink Specials:</strong><textarea name="mon_drinks" cols="50" rows="5"></textarea><br/><br/>
<strong>Food Specials: </strong><textarea name="mon_food" cols="50" rows="5"></textarea>
here is my php code
$master_id = mysqli_insert_id($mysqli);
$monday = $_POST["monday"];
if ($monday == "monday") {
//add to Monday Table
$mon_start_time = $_POST["mon_start_hour"].":".$_POST["mon_end_minute"];
$mon_end_time = $_POST["mon_end_hour"].":".$_POST["mon_end_minute"];
$add_monday_sql = "INSERT INTO Monday (start_time, end_time, food_specials, drink_specials, idrestaurant_info) VALUES ('".$mon_start_time."', '".$mon_end_time."', '".$_POST["mon_food"]."', '".$_POST["mon_drinks"]."', '".$master_id."')";
$add_monday_res = mysqli_query($mysqli, $add_monday_sql) or die(mysqli_error($msyqli));
I would appreciate any type of help....Thanks in advance