Help - Search - Members - Calendar
Full Version: Simple Form help needed
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
anon1217
Hello I'm trying to setup a dropdown list on my site and I am wondering how to get the submit button to use the value for the options in the list.
This is what I'm trying to work with...
CODE
<select name="dropdown box">
  <option>Select an option</option>
  <option value="www.google.com">selection 1</option>
  <option value="www.google.com">selection 2</option>
</select>  
    <input name="button" type="submit" value="Submit" />

any help would be much appreciated
pandy
Where are the form tags? A submit button just submits the form. To what it's submitted is specified in the action attribute in the FORM tag. That's where the action is. tongue.gif

See http://htmlhelp.com/faq/html/forms.html#form-howto (and forward). Are you trying to create some kind of navigation with this? In that case also see http://htmlhelp.com/faq/html/forms.html#form-navmenu .
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.