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
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
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.