Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 16-08-06
leaddo's Avatar
Registered User
 
Join Date: Nov 2003
Location: Grimsby
Posts: 250
Thanks: 0
Thanked 0 Times in 0 Posts
leaddo is an unknown quantity at this point
  Changing the destination of a form...

Hi All

Can someone tell me if you can change the action value of a form,

ie <form action="subform.php" ....>

depending on a radio button value within that form?
---------------------------------------------
action="form1.php" if radio button 1 selected
action="form2.php" if radio button 2 selected
---------------------------------------------
Does that make sense?

Thanks in advance.
__________________
Andy

Make Gift Giving Personal and PersonaliseYaGifts | My New Blog about AffiliateLiving | Cheap Super Fast Broadband
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 16-08-06
Barry's Avatar
Typing with both fingers.
 
Join Date: Aug 2003
Location: In Fishguard with my lovely coracle.
Posts: 2,981
Thanks: 114
Thanked 26 Times in 19 Posts
Barry seems to know their stuff
Hi

I think this is what you need :-

HTML Code:
<input type=radio name="somename" onClick="form.action = '1.php';"> Option 1
<input type=radio name="somename" onClick="form.action = '2.php';"> Option 2
<input type=radio name="somename" onClick="form.action = '3.php';"> Option 3
Ta
__________________
Mirror Ten Ltd :: Free Codes :: HTC Touch HD
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 16-08-06
leaddo's Avatar
Registered User
 
Join Date: Nov 2003
Location: Grimsby
Posts: 250
Thanks: 0
Thanked 0 Times in 0 Posts
leaddo is an unknown quantity at this point
Hi Barry

Thanks.

I hadn't thought of that, that looks neat. What do I have the action=" " in the Form bit, would a # do?

I'll try it out.
__________________
Andy

Make Gift Giving Personal and PersonaliseYaGifts | My New Blog about AffiliateLiving | Cheap Super Fast Broadband
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 16-08-06
Barry's Avatar
Typing with both fingers.
 
Join Date: Aug 2003
Location: In Fishguard with my lovely coracle.
Posts: 2,981
Thanks: 114
Thanked 26 Times in 19 Posts
Barry seems to know their stuff
If no option is selected it will submit back on itself if you leave it blank or if you specify a document it will submit it back onto that page.

Cheers
__________________
Mirror Ten Ltd :: Free Codes :: HTC Touch HD
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form question from beginner. Mike_M Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 11 23-01-06 11:13 PM
PHP Form Help MobileDealsNow Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 3 13-11-05 06:22 PM
Lost password form on CJ website woutermols Commission Junction - CJ UK 0 30-03-05 06:18 PM
This new google adwords destination url rule, what if.... Brad123 Organic Google Search Optimisation 8 10-02-05 08:03 PM
Adwords destination URL mattylamb Pay Per Click Search Engines 3 16-11-04 01:36 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7