I'm looking for someone to code me a simple php script that changes the action URL of a form once a user selects the feature (e.g. blog or forum) from the drop down menu. http://www.ceneb.com You can see how I'm wanting it to work underneath the navigation bar. PM me a quote or add me on MSN .
how about something like this? <script type="text/javascript" name="JavaScript"><!-- function FormAction() { document.form.action = document.form.url.value; return true; } //--></script> <form name="form" action= "val" method="post"> <select name="url"> <option value="whatever.php?value=some_val">The Site</option> <option value="whatever.php?value=some_val">The Domain Catalog</option> </select> <input type="button" value="GO" onClick="FormAction();form.submit();" /> </form> HTML:
Thanks jbud, that seemed to work a treat, much appreciated! Thanks for the screenshot happpy, I coded it months ago, it was one of the first things I'd coded and as you can see ^ it wasn't too great. In the past week though, I've recoded it and its perfect.
I haven't yet uploaded the updated site but it should be updated in the next few days, I'm wanting to put it all into WordPress before I next update.