/
signing.php
33 lines (30 loc) · 788 Bytes
/
signing.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
<?php
include ('connect.php');
$user=$_POST['username'];
$pass=$_POST['pass'];
$cpass=$_POST['cpass'];
$name=$_POST['name'];
$phone=$_POST['phone'];
$email=$_POST['email'];
$dob=$_POST['dob'];
$category=$_POST['category'];
$hnum=$_POST['hnum'];
$building=$_POST['building'];
$street=$_POST['street'];
$city=$_POST['city'];
$state=$_POST['state'];
$pincode=$_POST['pincode'];
$today=date("Y-m-d");
// $hash = password_hash($pass, PASSWORD_DEFAULT);
$sql="insert into user_details values ('$user','$pass','$name','$phone','$dob','$email',21,'$category','$hnum','$building','$street','$city','$state','$pincode')";
$result = mysqli_query($con, $sql);
if($result==true)
{
echo "Added";
include 'sign.php';
}
else
{
echo "Not Added";
include 'sign.php';
}