Current Business Bulletins:
"; } if ($email == "") { $emptyfields++; $bespokemessage.="You need to enter your email address
";} if ($username == "") { $emptyfields++; $bespokemessage.="You need to choose a username
"; } if ($password == "") { $emptyfields++; $bespokemessage.="You need to choose a password
"; } if ($website == "") {$emptyfields++; $bespokemessage.="You need to enter your website address
"; } if(strlen($password) < 6 ) { $emptyfields++; $bespokemessage.="Your password should be between 6 and 10 characters
"; } if(strlen($password) > 10) { $emptyfields++; $bespokemessage.="Your password should be between 6 and 10 characters
"; } if(strlen($username) < 6) { $emptyfields++; $bespokemessage.="Your username should be between 6 and 10 characters
"; } if(strlen($username) > 10) { $emptyfields++; $bespokemessage.="Your username should be between 6 and 10 characters
"; } $theresults = ereg("[^@ ]+@[^{ ]+\.[^@ \.]+$", $email, $trashed); if (!$theresults) { $emptyfields++; } $name = addslashes($name); $email = addslashes($email); $username = addslashes($username); $password = addslashes($password); $website = addslashes($website); if ($emptyfields !="0") { //include ("thevi.php"); echo "
Sorry!
Sorry, you either did not complete all the mandatory fields on the create profile screen, or you did not provide a valid email address.
These errors were recorded:
$bespokemessage
Please Go back and complete the form!
"; include ("register-bottom.php"); exit; } // need to check for username! function in_use($username) { global $user_tablename; $query = "SELECT username FROM affiliates WHERE username = '$username'"; $result = mysql_query($query); if(!mysql_num_rows($result)) return 0; else return 1; } if(in_use($username)) { echo "Sorry!
The username - $username - is in use. Please choose a different username. Go back and try again!
"; include ("register-bottom.php"); exit; } else { //all OK, create entry in profiles table $loggedip = $REMOTE_ADDR; //logging up $sql = "INSERT INTO affiliates (name,email,username,password,website,signupdate,signupip) VALUES ('$name', '$email', '$username', '$password', '$website', curdate(), '$loggedip')"; //changed to curdate from now as changed to date from datetime $outcome = mysql_query($sql); if ($outcome == "1") { // now create matching row in clickslog $final = mysql_query("INSERT INTO clickslog(refname) VALUES ('$username')"); //first email me to tell me new account mail ("lucy@strategyconsultinglimited.co.uk", "Introducer Affiliate Scheme Registration", "$name\n\nHas signed up for the introducer affiliate scheme.\n\nTheir email addres is $email, and their website is $website.", "From: affiliate@strategyconsultinglimited.co.uk"); mail ("strategy@nildram.co.uk", "Introducer Affiliate Scheme Registration", "$name\n\nHas signed up for the introducer affiliate scheme.\n\nTheir email addres is $email, and their website is $website.", "From: affiliate@strategyconsultinglimited.co.uk"); //now mail them to tell them about the new account too! mail ("$email", "Introducer Affiliate Scheme Registration", "$name\n\nThank you for signing up as an Introducer as part of our introducer affiliate scheme.\n\nTo login, simply visit: http://www.strategyconsultinglimited.co.uk/login.php and enter your login details:\n\nUsername: $username\nPassword: $password\n\nRemember to log in soon and choose the affiliate links you would like to place on your site.\n\nKind regards,\n--\nhttp://www.strategyconsultinglimited.co.uk\n", "From: affiliate@strategyconsultinglimited.co.uk"); //TC include ("thevi.php"); echo "Account created!
Thanks for becoming an affiliate. Please Login straight away and choose some affiliate links to add to your site.
"; // now use $currency, 1 = us dollars, 2 = british pounds } else { //all details present, but did not go into table //TC include ("page_top.php"); echo "Sorry!
Sorry - there was a problem with the creation of your Affiliate Account. Please go back and try again.
"; } // not properly in table } // end process form } // end if submit else { // display reg form //include ("thevi.php"); ?>Affiliate Registration
Affiliates: Index Page | Affiliate Home & Links | Referrals
To join our Affiliate Scheme, please fill in the form below, then click the 'Register' button.
Once your account is created, you will be able to choose the affiliate links you require for your site, and track your referrals online.
Your username and password must be between 6 - 10 characters and may contain letters or numbers.
} // end show form ?>Strategy EasyNoter
Download our FREE Strategy EasyNoter Organiser software now!



