I am trying to make this work. Despite either submit button being pressed, both continue with the page its posted to, neither makes the page change??
The 1st Form - 2 Submit buttons. The code on the form is:
<input type="submit" value=" Place Order " name="B2" style="font-weight: 700"><input type="submit" value="Return to Menu" name="B1" style="font-weight: 700"></p>
The form it gets posted to has this in the very front:
if (isset($_POST['submit']) && $_POST['submit'] == 'Return to Menu') {
header('location: newmenu.php');
exit(); }
Can anyone see/tell me where it's going wrong. Many thanks
The 1st Form - 2 Submit buttons. The code on the form is:
<input type="submit" value=" Place Order " name="B2" style="font-weight: 700"><input type="submit" value="Return to Menu" name="B1" style="font-weight: 700"></p>
The form it gets posted to has this in the very front:
if (isset($_POST['submit']) && $_POST['submit'] == 'Return to Menu') {
header('location: newmenu.php');
exit(); }
Can anyone see/tell me where it's going wrong. Many thanks