|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Please Help!
<script type="text/javascript">
<!-- function pageselect(x){ switch (x) { case 1: form1.setAttribute("action","correct.htm?true=yes"); break; case 2: form1.setAttribute("action","incorrect.htm?true=no"); break; } } // --> </script></head> <body> <form action="correct.htm" method="post" target="_new" name="form1"> <input type="text" name="test" /> <input type="submit" value="yes" onClick="pageselect(1)"><input type="submit" value="no" onClick="pageselect(2)"> </form> </body> </html> This is my code...but when I click yes or no the variable is not transmitted to the other page...please help! thanks to all |
|
#2
|
|||
|
|||
|
RE: Please Help!
what are you doing with the variable on the target pages?
|
|
#3
|
|||
|
|||
|
RE: Please Help!
I try to find whick one of the buttons has he clicked,because one is for an previous action the other for next.
|
|
#4
|
|||
|
|||
|
RE: Please Help!
Notice in the code that if the user picks yes, they are redirected to correct.htm and if they pick no, they are redirected incorrect.htm. this is how you would tell. There should be no need to pass another variable to the target page...
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Please Help! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|