|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
posting a form
Help please... I am working with a form that has a selection box and when the value of the select box changes I would like it to submit the form to a page in a variable set by the on_change sub of the select box... any ideas...
|
|
#2
|
|||
|
|||
|
Try the following!!!!
![]() 'rename/change the html files to in the value part of option to work properly. <FORM> <SELECT ONCHANGE="location = this.options[this.selectedIndex].value;"> <OPTION VALUE="myhome.html">My Home Page <OPTION VALUE="myresume.html">Resume <OPTION VALUE="myhobbies.html">Hobbies <OPTION VALUE="mydog.html">My Dog </SELECT> </FORM> |
|
#3
|
|||
|
|||
|
That's close... But there are other items in the form including a password... And I would like the entire form with it's current values posted so when the page comes back the values still exist...
|
|
#4
|
|||
|
|||
|
To pass a value just add a question mark (?)variable name,= then the value.
<FORM> <SELECT ONCHANGE="location = this.options[this.selectedIndex].value;"> <OPTION VALUE="myhome.asp?Password=abcd">My Home Page <OPTION VALUE="myresume.asp?Password=abcd&username=a">Resume <OPTION VALUE="myhobbies.asp">Hobbies <OPTION VALUE="mydog.asp">My Dog </SELECT> </FORM> |
|
#5
|
|||
|
|||
|
But wouldn't that put the password in clear text in the address bar...
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > posting a form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|