-
Notifications
You must be signed in to change notification settings - Fork 0
/
confirm.php
111 lines (83 loc) · 2.7 KB
/
confirm.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
session_start();
error_reporting(0);
if(strlen($_POST['status'])!=0)
{
header('location:index.php');
}
else
{
$con=mysqli_connect("localhost","root","","titanpro");
$query="select * from student";
$res = mysqli_query($con,$query);
$count=0;
while($row =mysqli_fetch_assoc($res))
{
$count=$count+1;
}
$value=$count;
$value=$value+1;
$sid="sg@".$value;
?>
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<link rel="stylesheet" href="assets/css/confirm.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
</head>
<body>
<?php include('includes/header.php'); ?>
<div class="container">
<div class="form">
<table class="tables">
<tr>
<td> User ID : </td> <td> <?php echo "sg@".$value; ?> </td><td> </td>
<td><label>Password :</label></td> <td> <input type="password" name="password" pleaceholder="Password" required autocomplete="off"/> </td>
</tr>
<tr></tr><tr></tr>
<tr>
<td> First Name : </td> <td> <?php echo $fname=$_POST["fname"];?> </td> <td></td>
<td> Last Name :</td> <td> <?php echo $lname=$_POST["lname"];?> </td>
</tr>
<tr></tr><tr></tr>
<tr>
<td> City : </td> <td> <?php echo $city=$_POST["city"] ?> </td><td> </td>
<td> Email ID :</td> <td> <?php echo $email=$_POST["email"]; ?> </td>
</tr>
<tr></tr><tr></tr>
<tr>
<td>Verification code : </td> <td>
<input type="text" name="vercodeuser" maxlength="5" autocomplete="off" required style=" width: 80px; height: 25px;" /> </td><td> </td>
<td> Contact no. : </td> <td> <?php echo $cno=$_POST["number"];?> </td>
</tr>
<tr><td></td>
<td> <img src="captcha.php"></td>
</tr>
</table>
</form>
<p style="text-align: center; padding-top: 50px;">
<button type="button" class="btn btn-outline-light btn-lg " onclick="window.location.href='http://localhost/zat/index.php'">
Back
</button>
<button type="submit" class="btn btn-outline-light btn-lg" onclick="window.location.href='http://localhost/zat/check.php'">
SignUp
</button>
</p>
</div>
</div>
</div>
<?php include('includes/footer.php'); ?>
</body>
</html>
<?php
$_SESSION["sid"]=$sid;
$_SESSION["fname"]=$fname;
$_SESSION["lname"]=$lname;
$_SESSION["city"]=$city;
$_SESSION["email"]=$email;
$_SESSION["value"]=$value;
$_SESSION["cno"]=$cno;
}
?>