-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStore_data.php
More file actions
39 lines (37 loc) · 959 Bytes
/
Store_data.php
File metadata and controls
39 lines (37 loc) · 959 Bytes
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Signup Successfully</title>
<style type="text/css">
body{
margin-top: 15%;
}
h1,h2{
color: blue;
}
a{
color: green;
}
</style>
</head>
<body align="center">
<h1>Your details is store Successfully.....</h1>
<h2>Now you can log in from given link...
<a href="prototype.html">login</a></h2>
</body>
</html>
<?php
$con=new mysqli("localhost","root","Harshil479","library_project");
$name=$_POST["Name"];
$number=$_POST["Number"];
$Date=$_POST["Bith"];
$email=$_POST["Email"];
$username=$_POST["username"];
$pass=$_POST["Password"];
if($_POST)
{
$query="INSERT INTO `user_table` (`Username`, `Password`,`Name`, `Phone_number`, `Birth_date`, `Email`) VALUES ('$username', '$pass','$name', '$number', '$Date', '$email')";
$ins=mysqli_query($con,$query);
}
?>