• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Form Help

T

Timuwine

Guest
#1
I know this might sound silly but...

Is there a way that I can make a drop down list form, where I can have people choose what song they would like to listen to when there enter my site? Not using javascript.

Thanks
 
#2
This should work i I got it right. ;)

Code:
<form name="songForm" method="post" action="nextPage.html">
  <select name="song" onChange="document.songForm.submit()">
    <option value="1">Song 1</option>
    <option value="2">Song 2</option>
    <option value="3">Song 3</option>
  </select>
</form>
 
#3
he said not using JavaScript

so pretty much do that, as far as I know as long as there is only one element in a form you can just press enter once selecting what you want, so just remove the onChange part I think
 
#4
Originally posted by Geffy
he said not using JavaScript
Yeah, but nothing about me not using it. :p
Oh well a submit button will do to:
Code:
<form name="songForm" method="post" action="nextPage.html">
  <select name="song">
    <option value="1">Song 1</option>
    <option value="2">Song 2</option>
    <option value="3">Song 3</option>
  </select>
  <input type="submit" value="Choose">
</form>
 
T

Timuwine

Guest
#5
hey thanks alot you guys, i'm trying it out now, i'll post again later and tell you if it worked
 

Members online

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,962
Messages
673,240
Members
89,017
Latest member
loxioalix