As stated above, when I try to send a form using php my if statement is not being triggered and the variable is not being set to my desired value.
Relevant PHP:
if($_SERVER["REQUEST_METHOD"] == "POST"){
if(isset($_POST['time_pickedm']) == "9:00"){
$timepicked = "09:00:00";
}
}
Relevant HTML:
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="POST">
<input type="button" class="<?php echo $buttoncolour ?>" name= 'time_pickedm' value = "9:00">
<input type="submit" class="btn btn-primary" name="Submit">
</form>
Any help would be appreciated