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
|