Hello! I am searching over the net for quite a long, but I have almost no idea concerning Javascript so I can't figure out the solution to my problem... I have a form that show a drop-down menu, which takes all its values through a Mysql database via PHP. What I want to do is to submit the form to the next page (from index.php ---> retrieve_data.php) without the need of a "Submit" button. When the user selects one of the given options, automatically he will be redirected to retrieve_data.php?id=5 for example... Thank you in advance!
Use AJAX - I'd recommend prototype: http://prototype.conio.net/ or xajax: http://www.xajaxproject.org/
<form action="retrieve_data.php" method="get"> <select name="id" onChange="submit()"> <!-- Im aware your values are from sql, Im just giving you the general idea --> <option> Please choose whatever </option> <!-- Remember to leave the line above in its vital to full operation --> <option value="1">Stage 1</option> <option value="2">Stage 2</option> </select> </form> Code (markup):