HTML forms and list/menu combined w/ javascript links?
Okay. I'll try to be as detailed as possible. What I want to do is to take 2 html lists. One has 10 labels, 1-10 the other has 5 labels, 1-5 Then theirs a button w/ the value "Go" What I want to know is how can I take the selections from forms 1 and 2, and when I press go, it will go to a different webpage? Example: form 1: 3 is selected form 2: 1 is selected Go is pressed Goto webpage http://google.com Please and thank you. I'm sorry. I'm html + javascript stupid. Could somebody please rephrase that? I'm doing this like a neswletter- I want to pick Volume and Issue numbers. So volume would be 1-5, and issue would be 1-10. 10 issues in a volume.
Public Comments
- I think it's like this: <form method="POST" action="http://google.com"> ...... <input type="submit" value="Go" name="" style="" /> </form> name....whatever name style......whatever style If you have any question just ask.
- Assume the pages that you want to redirect to is based on combining the value from 2 dropdowns, e.g. for newsletter volumn2 issue3 the page is v2i3.html, and the location of these pages are in the same folder with this select page. Put the following between the body tags <select id="s1"> <option value= "v1">Volumn 1</option> <option value= "v2">Volumn 2</option> <option value= "v3">Volumn 3</option> <option value= "v4">Volumn 4</option> <option value= "v5">Volumn 5</option> </select> <select id="s2"> <option value= "i1">Issue 1</option> <option value= "i2">Issue 2</option> <option value= "i3">Issue 3</option> <option value= "i4">Issue 4</option> <option value= "i5">Issue 5</option> <option value= "i6">Issue 6</option> <option value= "i7">Issue 7</option> <option value= "i8">Issue 8</option> <option value= "i9">Issue 9</option> <option value= "i10">Issue 10</option> </select> <input type= "button" value="Go" onclick= "window.location= document.getElementById( 's1').value+ document.getElementById( 's2').value+ '.html';"> Send email if you need further modifications.
- Okay, I completed the code, can you give the links in any way? volume 1 issue 1 etc. Or is it private? If so tell me so I will post it, but it is very big.
Powered by Yahoo! Answers