Hello, I recently setup my new affiliate program and I need to pass the affiliate's id from my home page and place it into the affiliate signup form so that it will credit current affiliates with the referal when their visitors want to also become affiliates. Basically the sales cookie is set on the home page, it tracks and credits affiliate sales but I also want new affiliates that signup to be placed under the person that referred them to my site. I already have the software setup with the signup form on my site, I just need the code that makes the form pass the referal id to the affiliate sofware and credit the correct affiliate. Here is an example of the signup form:
Code:
<form action='https://www.osiaffiliate.com/affiliateprogram/users/register2.php' method='post' onsubmit='return checkvalidation();' name='signupform'>
<input type=hidden name=sinup_id value=4><span style="color: rgb(211, 211, 211);">
* First Name: <input type=text name='sinup_z_First_Name_' value="" size=40><br>
* Last Name: <input type=text name='sinup_z_Last_Name_' value="" size=40><br>
* Email: <input type=text name='sinup_z_Email_' value="" size=40><br>
* Choose Password: <input type=password name='sinup_z_Choose_Password_' value="" size=40><br>
* Confirm Password: <input type=password name='sinup_z_Confirm_Password_' value="" size=40><br>
Company: <input type=text name='sinup_z_Company_' value="" size=40><br>
Paypal Email to Pay Commission: <input type=text name='sinup_z_Paypal_Email_to_Pay_Commission_' value="" size=40><br>
Address: <input type=text name='sinup_z_Address_' value="" size=40><br>
Address 2: <input type=text name='sinup_z_Address_2_' value="" size=40><br>
City: <input type=text name='sinup_z_City_' value="" size=40><br>
State/Province: <input type=text name='sinup_z_State_Province_' value="" size=40><br>
Zip: <input type=text name='sinup_z_Zip_' value="" size=40><br>
Phone: <input type=text name='sinup_z_Phone_' value="" size=40><br>
* Email Format: <select name=sinup_z_Email_Format_><option value='1' >HTML</option>
<option value='2' >Text</option>
</select><br>
Name to use on Check: <input type=text name='sinup_z_Name_to_use_on_Check_' value="" size=40><br>
Payment Preference: <select name=sinup_z_Payment_Preference_><option value='' >- None -</option>
<option value='1' >Check</option>
<option value='2' >PayPal</option>
</select><br>
Tax ID: <input type=text name='sinup_z_Tax_ID_' value="" size=40><br>
Title: <input type=text name='sinup_z_Title_' value="" size=40><br>
<input type=submit name=check value='Submit'></form>
<script type="text/javascript">
function checkvalidation(){
var str=document.forms['signupform'].sinup_z_First_Name_.value;
if(!str)
{
alert('Please enter First Name ');
return false;
}
var str=document.forms['signupform'].sinup_z_Last_Name_.value;
if(!str)
{
alert('Please enter Last Name ');
return false;
}
var emailFilter=/^.+@.+\..{2,3}$/;
var str=document.forms['signupform'].sinup_z_Email_.value;
if(!str)
{
alert('Please enter email Id');
return false;
}
else if(!(str.match(emailFilter))) {
alert('Please enter valid email');
return false;
}
var str=document.forms['signupform'].sinup_z_Choose_Password_.value;
if(!str)
{
alert('Please enter Choose Password ');
return false;
}
var str=document.forms['signupform'].sinup_z_Confirm_Password_.value;
if(!str)
{
alert('Please enter Confirm Password ');
return false;
}
var str=document.forms['signupform'].sinup_z_Email_Format_.value;
if(!str)
{
alert('Please enter Email Format ');
return false;
}
}
</script>
Here is an example of the landing page code:
Code:
<script type="text/javascript">
<!--
document.write(unescape("%3Cscript id='omniaff_o789258' src='" + (("https:" == document.location.protocol) ? "https://" : "http://") +
"www.osiaffiliate.com/affiliateprogram/track.js' type='text/javascript'%3E%3C/script%3E"));//-->
</script>
Here is an example of the thank you page code:
Code:
<script>
function hideIF() {
document.getElementById('IF').style.display = '';
}
function getSaleInfo() {
document.getElementById('st_code').innerHTML='<iframe src="https://www.osiaffiliate.com/affiliateprogram/salejs.php?amount=.00&transaction=B" alt="" id=IF width=50 height=50 border="0" frameborder="0" onload="hideIF()">';
}
window.onload = getSaleInfo;
</script></p>
<div id="st_code"> </div>
"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."
WealthyClark.com
"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."
WealthyClark.com
"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."
WealthyClark.com
"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."