Truly basic question: How may I ensure a radio button is selected when a form is submitted and not submit the form if no button is selected? I don't have any button 'pre-checked' for a variety of reasons, so I need to make sure one IS checked before the form is submitted. NOTE: the page containing the radio buttons is one of a series of pages that make up a complete form; data from each page/section of the form is carried via sessions to the next page, etc. 'til user arrives a final page displaying all previous selections.
FWIW, with radio button name="fplan", I've tried isset ($_POST['fplan'], but don't know how to 'not submit' page/form if this is true. I've also tried
if (isset ($POST['submit']) && ! isset ($POST['fplan'])) {
echo "Please select a floorplan";
}
but, again, don't know how to keep form from submitting (and continuing to next part of form on next page) if radio button is not selected.