is_valid) { $er ="* Please make sure the Captcha value is correct.
"; } if($_POST['name']==""){ $er = "* Please enter your name.
"; $erscript .= "document.getElementById('name').style.borderColor = \"#ff0000\";"; } if($_POST['lastname']==""){ $er = $er."* Please enter your lastname.
"; $erscript .= "document.getElementById('lastname').style.borderColor = \"#ff0000\";"; } if($_POST['password2']==""){ $er = $er."* Please enter a password.
"; $erscript .= "document.getElementById('password').style.borderColor = \"#ff0000\";"; } if($_POST['email']==""){ $er = $er."* Please enter your email address.
"; $erscript .= "document.getElementById('email').style.borderColor = \"#ff0000\";"; } if(emailexists($_POST['email'])){ $er = $er."The email you entered is already registered in our system.

If you lost your password click here to reset it.


"; $erscript .= "document.getElementById('email').style.borderColor = \"#ff0000\";"; } if($er == ""){ //*********************** ADD DATA TO DATABASE **************************** connect(); $name = mysql_real_escape_string($_POST['name']); $lastname = mysql_real_escape_string($_POST['lastname']); $email = mysql_real_escape_string($_POST['email']); $pass = (mysql_real_escape_string($_POST['password2'])); $pass = md5($pass); $type = mysql_real_escape_string($_POST['type2']); $company = mysql_real_escape_string($_POST['company']); $address = mysql_real_escape_string($_POST['address']); $city = mysql_real_escape_string($_POST['city']); $state = mysql_real_escape_string($_POST['state2']); $zip = mysql_real_escape_string($_POST['zip']); $country = mysql_real_escape_string($_POST['country']); $phone = mysql_real_escape_string($_POST['phone']); $query = mysql_query("INSERT INTO tblusers(name,lastname,email, company, type, address, city, state, zip, country, phone, password) VALUES ('$name', '$lastname', '$email', '$company', '$type', '$address', '$city', '$state', '$zip', '$country', '$phone', '$pass')"); // Get ID $query = "SELECT LAST_INSERT_ID()"; $result = mysql_query($query); $row = mysql_fetch_row($result); $userid = $row[0]; $query = "INSERT INTO tblbalance(userid,balance) VALUES ('$userid', '0')"; //echo $query.' HERE '; //die(); $result = mysql_query($query); // SEND EMAIL $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSendmail(); // telling the class to use SendMail transport $msg = '

'.$name.',

Welcome to Classic Cars Sales.

Your username is '.$email.'.

If you have any questions about Classic Cars Sales please contact us at support@ClassicCarsSales.net

Thank you,

Classic Cars Sales
www.ClassicCarsSales.net

'; try { $mail->AddAddress($email, $name.' '.$lastname); $mail->SetFrom('support@ClassicCarsSales.net', 'Classic Cars Sales'); $mail->Subject = 'Welcome to Classic Cars Sales'; $mail->MsgHTML($msg); $mail->Send(); } catch (phpmailerException $e) { } catch (Exception $e) { } loginsignup($email, $pass); }else{ $vis = "inline"; } } $categories = getcategorieslist(); ?> Classic Cars Sales, Antique Cars, Old Cars, Classic Car Classified Ads

Search For a Car

Registration Form

As a Dealer you get a reduced rate, but must have a minimum of 5 ads per month. Private sellers have no minimum listings.

'.$er ?>
Membership Type
Company Name
Name *
Last Name *
Address
City
State
Zip
Country
Phone
Email *
Password * > 6 characters.
Classic Cars Sales Usage Terms and Conditions
I Agree to the Terms and Conditions of Use.

Featured Listings

Car Shows