-
Notifications
You must be signed in to change notification settings - Fork 0
/
EnterEmail.php
45 lines (37 loc) · 1.8 KB
/
EnterEmail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
</head>
<body class=' flex justify-center bg-slate-200'>
<div class="rounded-xl mt-5 flex sm:mx-auto sm:w-full sm:max-w-sm lg:w-2/4 min-h-full flex-col justify-center px-6 py-12 lg:px-8 bg-slate-900">
<div class="sm:mx-auto sm:w-full sm:max-w-sm">
<h2 class=" text-center text-xl font-bold leading-9 tracking-tight text-white">Please enter your email address to get the OTP</h2>
</div>
<div class="mt-5 sm:mx-auto sm:w-full sm:max-w-sm">
<form class="space-y-6" action="CodeEmail.php" method="POST">
<div>
<label for="email" class="block text-sm font-medium leading-6 text-white">Email address</label>
<div class="mt-2">
<input id="email" name="email" type="email" autocomplete="email" required class="block w-full rounded-md border-0 p-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 sm:text-sm sm:leading-6">
</div>
<?php
session_start();
if(isset($_SESSION['status'])){
echo '<span class="text-red-700">' .$_SESSION['status']. '</span>';
unset($_SESSION['status']);
}
?>
</div>
<div class="flex gap-4">
<button type="submit" name="send_otp_btn" class="flex w-full justify-center rounded-3xl bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Send OTP</button>
</div>
</form>
</div>
</div>
</body>
</html>