-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConnectSignUp.php
76 lines (68 loc) · 1.62 KB
/
ConnectSignUp.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
<html>
<head>
<title>connect</title>
</head>
<body>
<?php
session_start();
$uid=$_POST["uid"];
$fnm=$_POST["fnme"];
$lnm=$_POST["lnme"];
$count=$_POST["coun"];
$state=$_POST["state"];
$city=$_POST["city"];
$district=$_POST["dist"];
$address=$_POST["address"];
$pincode=$_POST["pin"];
$mobile=$_POST["mob"];
$phone=$_POST["pho"];
$emailid=$_POST["eml"];
$newpwd=$_POST["pwd"];
$cnfrmpwd=$_POST["cpwd"];
$_SESSION["uid"]=$uid;
/*$_SESSION["fnme"]=$fnm;
$_SESSION["lnme"]=$lnm;
$_SESSION["coun"]=$count;
$_SESSION["state"]=$state;
$_SESSION["city"]=$city;
$_SESSION["dist"]=$district;
$_SESSION["address"]=$address;
$_SESSION["pin"]=$pincode;
$_SESSION["mob"]=$mobile;
$_SESSION["pho"]=$phone;
$_SESSION["eml"]=$emailid;
$_SESSION["pwd"]=$newpwd;
$_SESSION["cpwd"]=$cnfrmpwd;*/
include("Connection.php");
$sql="insert into user_details
(User_ID,
First_Name,
Last_Name,
Country,
State,
City,
District,
Address,
Pin_Code,
Mobile_No,
Phone_No,
Email_ID,
New_Password,
Confirm_Password)
values('$uid','$fnm','$lnm','$count','$state','$city','$district','$address','$pincode','$mobile','$phone','$emailid','$newpwd','$cnfrmpwd')";
$result=mysql_query($sql);
if($result)
{
$_SESSION['loggedin'] = true;
$_SESSION['uid'] = $uid;
header('Location:Welcome.php');
}
else
{
echo die(mysql_error());
header("Location: SignUp.php");
//echo "Error";
}
?>
</body>
</html>