SunQuest
           Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 10th, 2003, 06:05 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
  #2  
Old October 10th, 2003, 11:44 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Please Help!

what are you doing with the variable on the target pages?

Reply With Quote
  #3  
Old October 11th, 2003, 08:25 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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.

Reply With Quote
  #4  
Old October 11th, 2003, 11:50 AM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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...

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Please Help!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway