-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRegistation form.php
127 lines (118 loc) · 4.82 KB
/
Registation form.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
<?php
include('connection.php');
extract($_REQUEST);
if(isset($save))
{
$sql= mysqli_query($con,"select * from create_account where email='$email' ");
if(mysqli_num_rows($sql))
{
$msg= "<h1 style='color:red'> account already exists</h1>";
}
else
{
$sql="insert into create_account(id,name,email,password,mobile,address,gender,country,picture) values('$i','$fname','$email','$Passw','$mobi','$addr','$gend','$countr','$pict')";
if(mysqli_query($con,$sql))
{
$msg= "<h1 style='color:green'>Data Saved Successfully</h1>";
header('location:Login.php');
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>La Velle</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<link href="css/style.css"rel="stylesheet"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Baloo+Bhai" rel="stylesheet">
</head>
<body style="margin-top:50px;">
<?php
include('Menu Bar.php');
?>
<div class="container-fluid"style="background-color:#4286f4;color:#000;"> <!-- Primary Id-->
<div class="container">
<div class="row">
<center><h1 style="background-color:#ed2553; border-radius:50px;display:inline-block;"><b><font color="#080808">Create New Account?</font></b></h1></center>
<center><?php echo @$msg;?></center><br>
<div class="col-sm-2"></div>
<div class="col-sm-6 ">
<form class="form-horizontal"method="post">
<div class="form-group">
<div class="control-label col-sm-5"><h4>Name :</h4></div>
<div class="col-sm-7">
<input type="text" name="fname" class="form-control"placeholder="Enter Your Name"required>
</div>
</div>
<div class="form-group">
<div class="control-label col-sm-5"><h4>Email-Id:</h4></div>
<div class="col-sm-7">
<input type="text" name="email" class="form-control"placeholder="Enter Your Email-id" autocomplete="off"required>
</div>
</div>
<div class="form-group">
<div class="control-label col-sm-5"><h4>Password :</h4></div>
<div class="col-sm-7">
<input type="password" name="Passw" class="form-control"placeholder="Enter Your Password"autocomplete="off"required>
</div>
</div>
<div class="form-group">
<div class="control-label col-sm-5"><h4>Mobile No:</h4></div>
<div class="col-sm-7">
<input type="text" name="mobi" class="form-control"placeholder="Enter Your Mobile Number"required>
</div>
</div>
<div class="form-group">
<div class="control-label col-sm-5"><h4>Address :</h4></div>
<div class="col-sm-7">
<textarea name="addr" class="form-control"required></textarea>
</div>
</div>
<div class="form-group">
<div class="control-label col-sm-5"><h4 id="top">Gender :</h4></div>
<div class="col-sm-7">
<input type="radio" name="gend"value="male"required><b>Male</b> 
<input type="radio" name="gend"value="male"required><b>Female</b> 
<input type="radio" name="gend"value="male"required><b>Other</b>
</div>
</div>
<div class="form-group">
<div class="control-label col-sm-5"><h4>Country :</h4></div>
<div class="col-sm-7">
<select name="countr" class="form-control"required>
<option>Philippines</option>
<option>Vietnam</option>
<option>Indonesia</option>
</select>
</div>
</div>
<div class="form-group">
<div class="control-label col-sm-5"><h4 id="top">profile pic :</h4></div>
<div class="col-sm-7">
<input type="file" name="pict"accept="image/*"required>
</div>
<div class="row">
<div class="col-sm-6"style="text-align:right;"><br>
<input type="submit" value="Submit" name="save"class="btn btn-success btn-group-justified"required style="color:#000;font-family: 'Baloo Bhai', cursive;height:40px;"/>
</div>
</div>
</div>
</form>
</div>
</div>
<div class="col-sm-4">
</div>
</div>
</div>
</div>
<?php
include('Footer.php')
?>
</body>
</html>