my page work like this:
you get info about an person on one page, then you click on a radiobutton to get another persons info on the page.
I have a pulldownmeny where users can choose to only see info about persons who have answered YES or NO on a question. Say that I choose only to view persons who have answered YES on the question, it works this far, BUT when i click the radiobutton to get the next persons info this YES value isn't there anymore. How do I make this??
I use this code on the pulldownmeny:
<form action="index.php" method="post">
<select name="kon" onchange="this.form.submit()">
<option value="">Välj</option>
<option value="YES" <?php echo ($_POST["kon"] == "Y" ? "SELECTED" : ""); ?>>YES</option>
<option value="M" <?php echo ($_POST["kon"] == "N" ? "SELECTED" : ""); ?>>NO</option>
<option value="">Show both</option>
</select>
</form>