-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jtaxaddresssave.php
32 lines (32 loc) · 1 KB
/
Jtaxaddresssave.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
<?php
$servername="localhost";
$username="root";
$password="";
$dbname="juggernautsonlinetaxfilingsystem";
$conn = new mysqli($servername,$username,$password,$dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
else
echo "connected successfully";
$doornumber=$_POST["dn"];
$street=$_POST["s"];
$pincode=$_POST["pc"];
$area=$_POST["a"];
$town=$_POST["t"];
$state=$_POST["st"];
$country=$_POST["c"];
$mobile=$_POST["mn"];
$email=$_POST["em"];
$alternateemail=$_POST["ae"];
$aadhaarcardnumber=$_POST["aan"];
$aadhaarcardenrollementnumber=$_POST["aaen"];
$sql = "insert into address values('$doornumber','$street','$pincode','$area','$town','$state','$country','$mobile','$email','$alternateemail','$aadhaarcardnumber','$aadhaarcardenrollementnumber')";
if ($conn->query($sql) === TRUE) {
echo "New record created successfully";
header("location:Jtaxsalary.php");
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
$conn->close();
?>