+92 300 0000000 info@elitestore.pk

Account Banayein

Mobile number aur PIN se register karen

Yahi number aapka login ID hoga
Sirf 6 numbers — yahi aapka login PIN hoga
Pehle se account hai? Login Karen

SA
Sara Khan
Customer Support · Elite Store
Online — Typically replies instantly
typing...
if (isLoggedIn()) { header('Location: ' . BASE_URL . '/customer/dashboard.php'); exit; } $errors = []; $data = []; if ($_SERVER['REQUEST_METHOD'] === 'POST') { verifyCsrf(); $data = [ 'name' => cleanInput($_POST['name'] ?? ''), 'email' => cleanInput($_POST['email'] ?? ''), 'phone' => cleanInput($_POST['phone'] ?? ''), 'password' => $_POST['password'] ?? '', 'confirm' => $_POST['confirm_password'] ?? '', ]; if (strlen($data['name']) < 2) $errors[] = 'Name at least 2 characters hona chahiye.'; if (!filter_var($data['email'], FILTER_VALIDATE_EMAIL)) $errors[] = 'Valid email address enter karen.'; if (strlen($data['password']) < 8) $errors[] = 'Password min 8 characters hona chahiye.'; if ($data['password'] !== $data['confirm']) $errors[] = 'Passwords match nahi hote.'; if (!empty($data['phone']) && !preg_match('/^[\d\s\+\-]{7,15}$/', $data['phone'])) $errors[] = 'Valid phone number enter karen.'; if (empty($errors)) { $result = registerUser($data); if ($result['success']) { // Auto-login after registration loginUser($data['email'], $data['password']); setFlash('Account successfully bana! Welcome to AliStore.', 'success'); header('Location: ' . BASE_URL . '/customer/dashboard.php'); exit; } else { $errors[] = $result['message']; } } } $pageTitle = 'Create Account'; $pageDesc = 'Join AliStore for a better shopping experience'; require_once 'includes/header.php'; ?>

Create Account

AliStore join karen

Already have an account? Login