"; } if(!$lastname) { $errors .= "Please enter your last name.
"; } if(!$email || !strpos($email,'@')) { $errors .= "Please enter a valid email address.
"; } if($_SESSION[captcha] != $_POST[human]) { $errors .= "Please enter the correct letters into the CAPTCHA to prove that you are not a computer.
"; } $checkemail = mysql_query("SELECT * FROM users WHERE Email = '$email'"); if(mysql_num_rows($checkemail) > 0) { $errors .= "That Email already exists in our system
"; } if($password != $passwordagain) { $errors .= "Passwords do not match
\n"; } //if(!preg_match('#\d+#', $password)) { $errors .= "Password must contain at least 1 number
"; } if(strlen($password) < 6 || strlen($password) > 20) { $errors .= "Password must be between 6 and 20 characters"; } if(!$errors) { mysql_query("INSERT INTO users (Username,First_Name,Last_Name,Password,Email,Date_Registered,Active) VALUES ('$username','$firstname','$lastname','$password','$email',NOW(),'Y')") or die(mysql_error()); session_start(); $_SESSION[username] = $username; $_SESSION[userid] = mysql_insert_id(); $to = $email; $from = "From: $websitename "; $subject = "$websitename Registration Confirmation"; $message = "Hi $firstname, Thanks for registering with $websitename! We're happy to welcome you into the $websitename community, and we're positive that you will love being a registered provider on our website. We've included your login information below. Please keep this email for future reference. Email: $email Password: $password You may now login at $websiteurl/members.html to start to explore our expanded member's area, where you can add details, images, logos and photos to your Scuba Spy listing. Please don't hesitate to reach out to us with your questions, comments and ideas. We're looking forward to hearing from you! Best, The Scuba Spy Team _________________ $websitename web | www.$websiteurlshort email | info@$websiteurlshort "; mail($to,$subject,$message,$from); //delete from potential owners. mysql_query("DELETE FROM potential_owners WHERE email LIKE '$email'"); header("Location: /members/step1.php"); } } $title = "List Your Dive Shop With Scuba Spy"; $metatags = ""; include('header.php'); ?>

List Your Dive Shop With Scuba Spy

If you aren't completely satisfied at any time during the first 3 months of your listing, you can get 100% of your money back. No questions asked.

Fill out the form below to add your dive shop to Scuba Spy, and to start receiving inquiries from interested divers!