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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
One Form - Two Actions ? How can i do this?
Old 01-27-2008, 09:46 AM One Form - Two Actions ? How can i do this?
Junior Talker

Posts: 2
Trades: 0
One Form - Two Actions ? How can i do this?

Hello,

I saw somewhere that this could be possible to do: having one form and two actions. I'm a newbie to this, so i would need some help.


I have a vbulletin forum. When someone registers at the forum, i have this form code in the register.php page:

Code:
<form action="register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="addmember" />
<input type="hidden" name="url" value="$url" />
<input type="hidden" name="agree" value="$agree" />
<input type="hidden" name="password_md5" />
<input type="hidden" name="passwordconfirm_md5" />
(and more fields...)

And this is the code given from the affiliate program, as i need it to integrate on the registration page:

Code:
<form method="post" action="http://my.url.com/register.html">
<input type="hidden" name="Affiliate" value="1050">
<input type="text" name="Email">
<input type="submit" name="Submit" value="Register"> 
</form>

Resuming: What i want is to use the email given at the registration, to send it also to the affiliation program... with one click on "register button", the user will be registered at my forum and at my affiliate program.


How can i do this?
Thank you for your help
xpgo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-27-2008, 10:07 AM Re: One Form - Two Actions ? How can i do this?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
The only way you could pull something like that off is with some form of a dual form post, but I wouldn't do it anyway. Your users won't be aware that they're signing up for an affiliate program, and that is highly unethical. Let them sign up for both separately and give then the choice that they deserve.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to One Form - Two Actions ? How can i do this?
 

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.39266 seconds with 12 queries