I can't get any of my attempts to validate the radio button to work. If either of the buttons is clicked it works. But, if no button is clicked an the submit button is click by itself I get an error on my action page. I'm out of ideas and tired of searching the web.
Here's my recent code.
<html>
<p align="center">
<form action = "login.php" method = "post">
<?php $menu = "Unchecked" ?>
Administrator:
<input name = "menu" type="radio" value="Administrator" >
Member :
<input name = "menu" type="radio" value="Member" ><br><br>
<input type='submit' value = 'Select a Radion Button'>
<?php
if (isset($_POST)) {
<input name = "menu" type="radio" value="blank" >
die ("You need to check one of the radio buttons!");
}
?>
</html>