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

Posts: 137
Location: Toronto, CANADA
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!
 
When You Register, These Ads Go Away!
Old 12-08-2006, 10:44 AM Re: Forum submit re-direct
foobar's Avatar
Extreme Talker

Posts: 225
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

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


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

 


Page generated in 0.12818 seconds with 12 queries