ilikephp Posted December 30, 2008 Share Posted December 30, 2008 hello, In dreamweaver, I created a List/menu form just contains 2 options, I want the user to choose one and it directly goes to a link that is defined: here is my script: <select name="select" class="title-gray"> <option>2008 - 2009</option> <option selected="selected"> 2007 - 2008</option> </select> how can I do it plz? Thx... Link to comment https://forums.phpfreaks.com/topic/138852-solved-listmenu-form/ Share on other sites More sharing options...
dropfaith Posted December 31, 2008 Share Posted December 31, 2008 you want a select menu that changes the webpage? so if user selects 2009 it shows a page for 2009?/ <form action="../"> <p><select onchange="window.open(this.options[this.selectedIndex].value,'_top')"> <option value="">Choose Sort Option</option> <option value="index.php">All</option> <option value="genre.php">By Genre</option> <option value="author.php">By Author</option> </select> Link to comment https://forums.phpfreaks.com/topic/138852-solved-listmenu-form/#findComment-726784 Share on other sites More sharing options...
ilikephp Posted January 9, 2009 Author Share Posted January 9, 2009 Thx a lot it works!! Link to comment https://forums.phpfreaks.com/topic/138852-solved-listmenu-form/#findComment-733155 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.