ob_start();
session_start();
$strTitle = "";
$strKeywords = "";
$strDescription = "";
$h1tag = "Manual Directory Submission Service & Article submission by SEO Firm";
include "tpl/header.php";
if (isset($_SESSION["userid"])) {
header("location: checkout.html");
}
$blnNoError = 0;
if (form_get("newsignup") == 1) {
$firstname = form_get('firstname');
$lastname = form_get('lastname');
$dob = form_get('dob');
$email_address = form_get('email_address');
$company = form_get('company');
$street_address = form_get('street_address');
$suburb = form_get('suburb');
$postcode = form_get('postcode');
$city = form_get('city');
$country = form_get('country');
$telephone = form_get('telephone');
$fax = form_get('fax');
$newsletter = form_get('newsletter');
$password = form_get('password');
$heard_frm = form_get('heard_frm');
$comment = form_get('comment');
if ( $arrConfig["enable_security_image"] )
{
if (!isset($_POST['img_answer']) || !isset($_SESSION['strSec']) || md5($_POST['img_answer']) != $_SESSION['strSec'])
{
$blnNoError =1;
$errtxt .= "
Please enter exact text as seen in image";
}
}
if ($blnNoError == 0)
{
$sSQL1 = "select * from tbl_custommers where customer_username = '$email_address'";
$rec1 = $my_mysqlclass->q($sSQL1);
$nr = $my_mysqlclass->nr($rec1);
if ($nr > 0) {
$errtxt = "User Already present this email id : ".$email_address;
} else {
$sSQL = "insert into tbl_custommers (reseller_id , customer_username , customer_pws , customer_fname , customer_lname , customer_emailadd , customer_address1 , customer_address2 , customer_city , customer_state , customer_country , customer_zip , customer_phone , customer_status, customer_fax , customer_newsletter , customer_company , customer_dob, heard_frm, comment) values (0 , '$email_address' , '". md5($password) ."' , '$firstname' , '$lastname' , '$email_address' , '$street_address' , '' , '$city' , '$suburb' ,'$country' ,'$postcode' , '$telephone' ,'1' , '$fax' , '$newsletter' , '$company' ,'$dob','$heard_frm', '$comment')";
$rec1 = $my_mysqlclass->q($sSQL);
$userid = mysql_insert_id();
$_SESSION["userid"] = $userid;
$_SESSION["email"] = $email_address;
//sending welcome email
$to = $email_address;
$subject = "Sign Up complete at Submit Edge";
$sendMail = new mailit();
$sendMail->MsgFromTpl($to,$subject,"tpl/mails/tbl_newsignup.php",$arrConfig["admin_email"]);
$subject = "New Customer Sign up at Submit Edge";
$sendMail->MsgFromTpl($arrConfig["admin_email"],$subject,"tpl/mails/tbl_newsignup.php",$arrConfig["admin_email"]);
$sendMail = NULL;
if ($_SESSION["shop"] == 1) {
header("location: checkout.html");
} else {
header("location: index.html");
}
}
}
}
?>
'.$errtxt.'
'; } include "js/tooltip.html"; /*for tool tip*/ ?>