0 ) $arrErrors['email'] = 'This email address has already been used by someone. Please enter a different email address'; } if ($password == '') $arrErrors['password'] = 'Please enter a password!'; else if ( $password != '' && strlen($password)<3 ) $arrErrors['password'] = 'The password has less than 4 characters. Please enter a longer password!'; if ($password != '' && $repeat_password == '') $arrErrors['repeat_password'] = 'Please type the password again!'; else if ( $password != $repeat_password ) $arrErrors['repeat_password'] = 'The password aren\'t the same'; if ($street_address == '') $arrErrors['streetAddress'] = 'Please enter the street Address!'; if ($city == '') $arrErrors['city'] = 'Please enter a city!'; if ($zipCode == '') $arrErrors['zipCode'] = 'Please enter a Postal code.'; else if (!preg_match("/^[0-9]+$/",$zipCode)) $arrErrors['zipCode'] = 'The zip code must contain only digits'; if ($verification_code == '' ) $arrErrors['verification_code'] = 'Please enter the code shown in the black rectangle!'; else if ($_SESSION['new_string'] != $verification_code) $arrErrors['verification_code'] = 'The security code doesn\'t match!'; if ($terms == '') $arrErrors['checkbox'] = 'You cannot create an account unless you agree to terms and services'; if (count($arrErrors) == 0) { $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: do-not-reply@yardsaway.com \r\nReply-to: do-not-reply@yardsaway.com\r\n"; $headers .= "BCC: jjohnson@launchmark.com\r\n"; $subject = "YA mini-site Account Info... "; $message = ""; $message .= "\n \n"; $message .= "\n"; $message .= "

Congratulations and welcome to yardsaway.com!

With yardsaway.com you can:

Get a FREE Mobile Keyword to build your customer list (only $0.10 per credt to send out a blast to your list)
Create and post unlimited mobile deals and customer redemptions at low cost
Build a free business mini-site, so customers and search engines can easily find your business online
Share offers for your products or service
Ad a slide show, video ad or record your clients raving about your products and/or services and upload them free to your YA mini-site

Contact us at 703-879-3086 to learn how we can promote your business through eco-friendly direct marketing campaign in your neighborhood.
To get a Mobile Keyword, email us at keywords@yardaway.com

"; $message .= "
E-mail address: $email
Password: $password
"; $qref = "select referal_code from tbl_referals where referal_code = '$sales_code'"; $rref = mysql_query($qref); if (mysql_num_rows($rref) > 0 ) //we have a matching referal code { $business_campaign_startdate = 'now()'; $business_campaign_duration = 30; } else { $business_campaign_startdate = '\'\''; $business_campaign_duration = ''; } $q = ("INSERT INTO `tbl_businesses` (`business_name` , `business_email` , `industry_id` , `business_city` , `business_zipcode` , `business_state` , `business_streetaddress` , `business_website` , `business_contact_person` , `business_sales_code` , `business_phone` , `business_fax` , `business_image` , `business_video` , `business_password` , `business_enabled` , `business_campaign_startdate`, `business_campaign_duration`, `business_yearsofexperience` , `business_signupdate` ) VALUES ( '$business_name', '$email', '$industry', '$city', '$zipCode', '$state', '$street_address', '', '$contact_person', '$sales_code', '', '', '', '', '$password', '\'1\'', ".$business_campaign_startdate.", '".$business_campaign_duration."', '', current_date())"); // echo $q; mysql_query($q) or die(mysql_error()); $message .= "

Please ensure that you read our Business Terms and Conditions.

"; $message .= "

We look forward in working with you.

"; $message .= ""; $_SESSION['businessId']=mysql_insert_id(); @mail ($email,$subject,$message,$headers); header ("Location: thankyoub.php"); } } else { $strError = '

There are errors! Please correct them

'; } if (isset ($_POST['txtEmailAddress'] ) && !isset($_POST['action_signup'])) loginUser("businesses"); if (isset($_GET['loginError'])) $message = "

Incorrect e-mail address or password!

"; if (isset($_POST['btnForgotPassword'])) { if (!preg_match("/^[\d\w\/+!=#|$?%{^&}*`'~-][\d\w\/\.+!=#|$?%{^&}*`'~-]*@[A-Z0-9][A-Z0-9.-]{1,61}[A-Z0-9]\.[A-Z]{2,6}$/i",$_POST['txtForgotEmailAddress'])) $message = "

The email address is not valid

"; else { $sql = "select business_password from tbl_businesses where business_email='".$_POST['txtForgotEmailAddress']."'"; $result = dbQuery($sql); if (mysql_num_rows($result) > 0 ) { $row = mysql_fetch_assoc($result); mailForgottenPassword($_POST['txtForgotEmailAddress'],$row['business_password']); $message = "

The password has been sent to
".$_POST['txtForgotEmailAddress']."

"; } else { $message = "

The e-mail address doesn't exists in our database

"; } } } ?> YA Mini-Site | Start your mobile marketing campaign today for just $30/month – No Contract Agreement…

Join our community of businesses!

')?> ')?> ')?> ')?> ')?> ')?> ')?> ')?> ')?> ')?>
Create/post deals and get a mobile keyword for your business totally Free!
Add credits and blast out deals to your customer list for just $.10/credit!

Please fill out the account information below.

(All fields required)
Industry Type:
'.$arrErrors['industry'].'
Business name: />
'.$arrErrors['businessName'].'
Contact Person: />
'.$arrErrors['contactPerson'].'
If you have a Referral Code:
Email Address: />
'.$arrErrors['email'].'
Password: />
'.$arrErrors['password'].'
Confirm Password: />
'.$arrErrors['repeat_password'].'
Street Address: />
'.$arrErrors['streetAddress'].'
State:  
City:

Please select a state then type in the city. The list will populate with available cities

 
'.$arrErrors['city'].'
Postal Code: />
 
'.$arrErrors['zipCode'].'
Verification:
/>   

Enter the text in the image  
'.$arrErrors['verification_code'].'
 

Forgot password?