Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Forum submit re-direct
Old 12-07-2006, 10:48 AM Forum submit re-direct
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
Looking for some help on this form I am building.

http://invites.fasken.com/skiday_07/rsvp.html

The very last question for ski rentals has 2 radio buttons. YES and NO.

What I need it to do is when some one Submits the form with NO selected for rentals they are sent to a thanks.html page. But is they select YES I want them directed to rentals.html page.

Please help

Thanks!
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
 
Register now for full access!
Old 12-08-2006, 10:44 AM Re: Forum submit re-direct
foobar's Avatar
Extreme Talker

Posts: 225
Trades: 0
I was looking through your source code and it's.... different than what I do. Regardless, here's what you'll wanna do.

Add this in whatever function checks the form, and alter as necessary.

Code:
if (skiday07.lessons[0].checked)
{
    skiday07.action = "page1.html";
}
else
{
    skiday07.action = "page2.html";
}

skiday07.submit();


Should be all you need.
foobar is offline
Reply With Quote
View Public Profile Visit foobar's homepage!
 
Reply     « Reply to Forum submit re-direct
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.63626 seconds with 12 queries