-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontactform.php
More file actions
51 lines (30 loc) · 725 Bytes
/
contactform.php
File metadata and controls
51 lines (30 loc) · 725 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
40
41
42
43
44
45
46
47
48
49
50
51
<html>
<?php
$host="localhost";
$dbuser="root";
$pass="";
$dbname="prj";
$conn=mysqli_connect($host,$dbuser,$pass,$dbname);
if(mysqli_connect_errno())
{
die("not connected to server" . mysqli_connect_error());
}
$Customer_email = $_POST["email"];
$password = $_POST["password"];
$name = $_POST["name"];
$address = $_POST["address"];
$city= $_POST["city"];
$state=$_POST["state"];
$zip=$_POST["zip"];
$sql="INSERT INTO contact(Email,Password,name,Address,City,State,Zip)VALUES('$Customer_email','$password','$name','$address','$city','$state','$zip')";
if(!mysqli_query($conn,$sql))
{
echo "not inserted";
}
else
{
echo"THANKYOU FOR BEING OUR MEMBER";
}
header("refresh:3;url=sign.php");
?>
</html>