-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_user.php
65 lines (49 loc) · 1.76 KB
/
add_user.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
include('inc/header.php');
include_once('conn/connection.php');
?>
<div class="container">
<div class="message_box">
<?php //include_once('emailchecking.php');
//$email_exist;
if(isset($_SESSION['email_exist'])){
echo $_SESSION['email_exist'];
}
unset($_SESSION['email_exist']);
if(isset($_SESSION['register_done'])){
echo $_SESSION['register_done'];
}
unset($_SESSION['register_done']);
if(isset($_SESSION['all_req'])){
echo $_SESSION['all_req'];
}
unset($_SESSION['all_req']);
if(isset($_SESSION['letters_req'])){
echo $_SESSION['letters_req'];
}
unset($_SESSION['letters_req']);
if(isset($_SESSION['only_number'])){
echo $_SESSION['only_number'];
}
unset($_SESSION['only_number']);
?>
</div>
<br><br>
<body class="box">
<h2>Registration</h2>
<form action="insert_data.php" method="POST" >
<div class="form-group">
<label for="first_name">First Name:</label>
<input type="text" class="form-control" id="first_name" placeholder="Enter First Name" name="first_name" pattern="^[a-zA-Z\s]*$" title="Only letters are required" autocomplete="on" minlength="3">
</div>
<div class="form-group">
<label for="last_name">Last Name:</label>
<input type="text" class="form-control" id="last_name" placeholder="Enter Last Name" name="last_name" pattern="^[a-zA-Z\s]*$" title="Only letters are required" autocomplete="on" minlength="3">
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="text" class="form-control" id="email" placeholder="Enter email " name="email" title="Only numbers are required" autocomplete="on" minlength="10">
</div>
<button type="submit" class="btn btn-primary" name="submit">Submit</button>
</form>
<?php include('inc/footer.php'); ?>