Jump to content

[SOLVED] list/menu form


ilikephp

Recommended Posts

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

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

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.