query($check_email); if ($result->num_rows > 0) { $error = "Email already registered. Please login or use a different email."; } else { // Hash password $hashed_password = password_hash($password, PASSWORD_DEFAULT); // Generate verification token $verification_token = bin2hex(random_bytes(32)); // Insert member $sql = "INSERT INTO members (full_name, email, phone, password, verification_token) VALUES ('$full_name', '$email', '$phone', '$hashed_password', '$verification_token')"; if ($conn->query($sql)) { // Send verification email $verification_link = SITE_URL . "/verify-email.php?token=" . $verification_token; $to = $email; $subject = "Verify Your Email - Paid Survey Hub India"; $message = "Hello " . $full_name . ",\n\n"; $message .= "Thank you for registering with Paid Survey Hub India!\n\n"; $message .= "Please click the link below to verify your email address:\n"; $message .= $verification_link . "\n\n"; $message .= "If you did not create this account, please ignore this email.\n\n"; $message .= "Best regards,\n"; $message .= "Paid Survey Hub India Team"; $headers = "From: noreply@paidsurveyhub.in\r\n"; $headers .= "Reply-To: signupverification@paidsurveyhub.in\r\n"; mail($to, $subject, $message, $headers); $success = "Registration successful! Please check your email (" . $email . ") and click the verification link to activate your account."; } else { $error = "Registration failed. Please try again."; } } } } // Get payment amount to determine messaging $payment_amount = get_setting('payment_amount'); $is_free = ($payment_amount == 0); $page_title = 'Sign Up - Paid Survey Hub India'; include 'includes/header.php'; ?>
Next Steps:
1. Check your email inbox
2. Click the verification link
3. Login and start exploring survey sites!
3. Complete the payment
4. Wait for account activation
Already have an account? Login here