Hey. I need help. I'm having a problem with the form in my website. I don't really know how to make it go to diff pages w/ diff options. My website's on www.getyourquotes.com and the problem is on the main page itself. I want the form to forward to diff pages w/ different insurance type options. Thanks soo much in advance
I don't really understand your question. Do you want to submit the form? You do that with: <form action="the_page_to_submit_to.php" method="post"> <input type="text" name="something" /> <input type="submit" value="Submit" /> </form> HTML:
sorry. what i meant was that when ppl choose diff options, they go to different landing pages for example, when they click on auto, and key in the zip code, they go to results_auto.html. when they click on home, they go to results_home.html. so far, i only know how to go to only 1 certain page but not to diff pages. @ elias. your solution is the one that lets the people go to only one certain page. not to diff pages according to what their choices are
Try this, just made it quickly, but not tested., tested now. Works perfectly <script type="text/javascript"> function changeFormLandingPage(pageValue){ document.getElementById("submitForm").action = pageValue+'.php'; } </script> <form action="standardpage.php" method="post" id="submitForm" /> <select name="page" onchange="changeFormLandingPage(this.value)"> <option value="standardpage">---- Select one ----</option> <option value="page1">This will land on page1.php</option> <option value="page2">This will land on page2.php</option> </select> <br /> <input type="submit" value="Submit" /> </form> HTML: