I have a html form with two radio buttons. Only one of these radio buttons can be selected. See below:
<td><form name="search" method="post" action="im_search.php">
<p>
<input name="titlequery" type="text" size=50>
</p>
<p>
<label>
<input type="radio" name="button1" value="locsearch">
Sort on Location</label>
<br>
<label>
<input type="radio" name="button1" value="titlesearch">
Sort on Title</label>
<br>
<p>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="reset" value="reset">
</p>
</form>
I would like to know how to perform either an if/else statement or a select case statement in the php file to run code based on which button is selected. If/else doesn't seem to work since the buttons are an either/or situation (both buttons named button1). Naming each radio button a different name is not an option since that would mean that both buttons could be selected at the same time.
Thanks in Advance,
RICK