Copy the activation code or ignore if this wasn't you.
Email: support@Vintagemarkets.org
alert('This email already exists!'); window.location.href = 'register.php?n=error'; "; exit(); } // Set session variables $_SESSION["email"] = $email; $_SESSION["v"] = $vcode; $vemail = "yes"; $DateJoined = date('M/d/Y h:i:sa'); $uid = rand(1000, time()); $step = 1; $fullName = trim($_POST['fn']) . trim($_POST['ln']); $uname = trim($_POST['un']); $att = trim($_POST['at']); $password = trim($_POST['p']); $currency = trim($_POST['cur']); $_SESSION["uid"] = $uid; // Insert into database $stmt = $conn->prepare("INSERT INTO members (Email, Uname, emailv, uid, Pass, at, step, vcode, full_name, Date, sym) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); $stmt->bind_param("sssississss", $email, $uname, $vemail, $uid, $password, $att, $step, $vcode, $fullName, $DateJoined, $currency ); if ($stmt->execute()) { // Send verification email using PHPMailer $mail = new PHPMailer(true); try { // SMTP settings $mail->isSMTP(); $mail->Host = 'smtp.titan.email'; $mail->SMTPAuth = true; $mail->Username = 'support@Vintagemarkets.org'; $mail->Password = '@PAct1234B12'; // Ideally, load this securely $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; $mail->Port = 465; // Sender and recipient settings $mail->setFrom('support@Vintagemarkets.org', 'Vintagemarkets'); $mail->addAddress("$email"); $mail->addReplyTo('support@Vintagemarkets.org', 'Vintagemarkets'); // Email content $mail->isHTML(true); $mail->Subject = 'Signup | Verification'; $mail->Body = "
Copy the activation code or ignore if this wasn't you.
Email: support@Vintagemarkets.org
Don't have an account? Create your account, it takes less than a minute
if(isset($_GET['msg']) == "failed"){ echo "Password Entered Not Thesame "; } ?>