Thanks for your reply.
I was actually trying to do this without a submit button as you said, in such a way that selecting the filter option from the dropdown box will automatically refresh the page with the queries I want.
I found out from forums yesterday that the parameter that you mentioned will help: "onchange="document.getElementById("env").submit();">", when added with the <select> will do the trick.
But when I select an option from the drop down box, the page stays still. This is how the form and select statements look like, and this dropdown is in a table cell:
<td>
<form method="post" id="env" action="<?php echo $_SERVER[PHP_SELF];?>" >
<select name="name" onchange="document.getElementById("env").submit();">
<option value="all">All</option>
<option value="Windows">Windows</option>
<option value="Win 2008">Win 2008</option>
<option value="Win 7">Win 7</option>
<option value="Win Vista">Win Vista</option>
<option value ="Linux">Linux</option>
<option value = "Win 7/Linux">Win 7/Linux</option>
</select>
</form>
</td>
And for trial purposes, I want to see if the option that I selected is being echoed as:
<?php
if(isset($_POST["name"]))
{
echo $_POST["name"];
}
?>
But the page remains still once I select an option. Can you let me know what I am doing wrong here?
Also this page is an authenticated page, like it appears after user logs in with their username/pwd. Just letting you know this, so that you can have a better picture of this page. Please let me know if you have any questions.