query("SELECT * FROM members WHERE ename = \"$ename\""); $username_exist = $checkuser->num_rows; if($username_exist > 0){ $error1 = TRUE; }else{ //////////////////CREATE NEW MEMBER///////////////////////// //////////////////////////////////////////////////////////// $time = time(); $q1 = "insert into members set regdate = '$time', ename = '$ename', epass = '$epass', contactname = '$contactname', surname = '$surname'"; $r1 = $connect->query($q1) or die($connect->error); if ($r1) { $memberid = $connect->insert_id; } /////////////SEND EMAIL ON REGISTRATION///////////////////// //////////////////////////////////////////////////////////// $to = "$contactname <$ename>"; $subject_em = "Registration at YellowLeaf - Your account details"; $email_message = '
Dear '.$contactname.'
Welcome to YellowLeaf.

Here are your account details which you will need when you log into YellowLeaf members area.

Email: '.$ename.'
Password: '.$epass.'

Click here to log into your YellowLeaf members account.
'; // message template which includes $message and $email_message include '../email_tmp/em_tmp.php'; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: YellowLeaf ' . "\r\n"; mail($to, $subject_em, $message, $headers,"-f support@yellowleaf.co.uk"); /////// KILL OFF ANY SESSION OR COOKIES MADE session_destroy(); setcookie("yl_user", $_SESSION['ename'], time()-60*60*24*100, "/"); //////////////////REGISTRATION COMPLETE///////////////////// //////////////////////////////////////////////////////////// $success=TRUE; } } } ?> Free Business Advertising - Business Local Listings ';}else{include '../header.php';} ?>
Thank Your For Registering With YellowLeaf
You have successfully created your account with YellowLeaf. An email has been sent to your email address regarding your login details.
The email has been sent to:
Click here to Login >
Get New Customers To Your Business...
Free Business Advertising - Advertise your Business today!
YOUR LOCAL BUSINESS DIRECTORY

 
COMPLETELY FREE
Adding your business on YellowLeaf is completely free of charge.
INSTANT CHANGES
Instantly change your business advert on YellowLeaf without any hassle or confusion.
BUSINESS PROFILE
Become more known and build your reputation on the web.
PHOTO UPLOAD
YellowLeaf provides you the opportunity to promote your business with photos.
SEARCH ENGINE OPTIMISED
Get found on search engines, your business advert will be search engine optimised.
LINK TO YOUR WEBSITE
If you have a website, promote it free. Get a free link to your website, increase exposure to your website.
SOCIAL LINKS
Increase your business popularity by promoting all of your major social links of your business from Facebook, Twittier and many more.
PROMOTIONS FACILITY
Does your business have promotions to offer to your customers? Add UNLIMITED amount of promotions.
BOOST YOUR SALES
Advertise with YellowLeaf and increase your exposure and boost your sales.
LOCALLY TARGETED ADS
Your advert will be targeted to particular users that are located near you.
READY TO ADVERTISE YOUR BUSINESS?
Click on the button below to create your free YellowLeaf account and instantly start advertising your business.
NEW BUSINESSES JOINED YELLOWLEAF
query("SELECT * FROM ads where active='1' order by adid desc limit 6"); $ad_numrow=$a->num_rows; if($ad_numrow==0){?>
Currently updating
fetch_array()){ $r_adid=strtolower($b['adid']); $r_ad_name=strtolower($b['companyname']); $r_ad_name = preg_replace("/[^A-Za-z 0-9]/", "", $r_ad_name); $r_ad_name=str_replace(" "," ",$r_ad_name); $ad_name=str_replace(" ","-",$r_ad_name); ?>
'; }else{ echo ''; } ?>
REGISTER NOW TO PROMOTE YOUR BUSINESS...
To register please complete the form below.
Personal Details
Please enter your personal details. This will be used to make contact if required.
Enter Your First Name:
Enter Your Surname:
Account Details
Please enter your email address and then choose a password. You will need this information everytime you log into your user account.
ERROR:
This email address is currently in use. Please choose another email address.
If this is your account, please click here to login >.
ERROR:
Your word verification does not match below.
You must prove you're not a robot. Please try again.
Email Address:
Re-Enter Your Email Address Again:
Enter a Password:
Re-Enter Password Again:
Word Verification
Word Verification prevents automated systems from adding accounts to YellowLeaf.

Please enter the 4 letters you see on the left into the box on the right: