include("config.inc.php"); $new_aid = new_id("uq_users", "id", $db, 25); $new_pass = new_id("uq_users", "passwd", $db, 8); $new_aid = $new_aid."_xxx"; //mysql_query("insert into uq_users values('$new_aid','$_POST[car_email]','$new_pass',NOW(),'$new_aid','$_POST[car_name]','$_POST[car_address]','$_POST[car_tel]','$_POST[car_postcode]')", $db); //setcookie("uid", $new_aid, time()+31104000); //send email $message = "
Thank-you for registering as an Introducer.
An Introducer\'s Account has already been opened in your name and you can access it at http://www.allcraftsmen.co.uk using the Login in the top right corner.
Your Login details are:
Email: $_POST[car_email]
Password: $new_pass
Select the Introductions link to make recommendations.
Your Account will also provide you with a glimpse of the benefits on offer to the customers you recommend to us.
Payments will be made by bank transfer to any bank account of your choice. Please advise us of your payment instructions.
Yours sincerely
Greg Allen
All Craftsmen
"; $new_em_id = new_id("emailer_emails", "id", $db, 25); //mysql_query("insert into emailer_emails values('$new_em_id',NOW(),'0000-00-00 00:00:00','$_POST[car_email]','$message','','Introducer Application','$_POST[car_name] <$_POST[car_email]>','','Created_GC_email_$new_aid','',NOW())", $db) or die(mysql_error()); $tip_message = "Someone wants to be an introducer Details: Name: $_POST[car_name] Email: $_POST[car_email] Tel: $_POST[car_tel] Address: $_POST[car_address] Postcode: $_POST[car_postcode] Password: $new_pass Thanks. "; //mail("greg@allcraftsmen.co.uk", "New Introducer", $tip_message); include("header.inc.php"); ?>