-
Notifications
You must be signed in to change notification settings - Fork 0
/
signupconfirm.php
136 lines (102 loc) · 3.7 KB
/
signupconfirm.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php
if(isset($_REQUEST["u_sub"]))
header('location:index.php');
?>
<?php
extract($_POST);
//$stid=$_REQUEST["in_eml"];
//$stpw=$_REQUEST["stpw"];
$name=$_REQUEST["in_name"];
$dob=$_REQUEST["in_dob"];
$eml=$_REQUEST["in_eml"];
$mob=$_REQUEST["in_mob"];
$sex=$_REQUEST["in_sex"];
$pas=$_REQUEST["in_pass"];
include 'config.php';
$rs1=mysqli_query($con,"select * from t_user_data where s_email='$eml'");
if (mysqli_num_rows($rs1)>0)
{
echo '
<font style="color:red; margin-left:520px; font-family: Verdana; width:100%; font-size:30px;">
<h5>Email ID Already Exists</h5></font>
';
exit;
}
if(isset($_REQUEST["in_sub"]))
{
//if($stid == "")
//$stid = StudentCode();
// if($stpw == "")
// $stpw = StudentPsw();
$sql = "insert into t_user_data values(";
$sql .= "'" . $eml . "',";
$sql .= "'" . $pas . "',";
$sql .= "'" . $dob . "',";
$sql .= "'" . $name . "',";
$sql .= "'" . $eml . "',";
$sql .= "'" . $mob . "',";
$sql .= "sysdate(),";
$sql .= "'" . $sex . "')";
$done = mysqli_query($con, $sql);
// header('location:signupconfirm.php');
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" href="bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap/bootstrap-theme.min.css">
<script src="bootstrap/jquery.min.js"></script>
<script src="bootstrap/bootstrap.min.js"></script>
<script language="javascript" type="text/javascript" src="jquery/jquery-1.10.2.js"></script>
<script language="javascript" type="text/javascript" src="jquery/jquery-ui.js"></script>
<link href="jquery/jquery-ui.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="css/sign.css"></link>
<script>
function valid(inputtxt)
{
var phoneno = /^\d{10}$/;
if(inputtxt.value.match(phoneno))
{
return true;
}
else
{
alert("Not a valid Phone Number");
return false;
}
}
</script>
</head>
<body style="background-image:url('./images/inbg.jpg');">
<form id="signupconfirm" action="signupconfirm.php" method="post">
<div id="dvlogin" style="box-shadow: 0px 5px 10px #999999">
<?php
?>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<!-- <img src="images/cutm.jpg" width="100%" style="box-shadow: 1px 5px 14px #999999; "></img> -->
</div>
</div>
</div>
<div id="dmid">
</div>
<div id="ddown">
<br><br><br>
<div id="dright">
<br><br><br><br><br>
<center><font style="color: #3399ff; margin-left:30px; font-family: Verdana;font-size:20px;">
<?php $done=require_once("mail-content.php");
echo "Your User ID/Email is $eml and Password is $pas" ; ?><br>
You are successfully registered. </font>
<br><br>
<input type="submit" id="u_sub" name="u_sub" value="Login" class="toggle btn btn-primary" style="width:100px; margin-left: 200px;"><br><br>
</center>
</div>
</div>
</form>
</body>
</html>