-
Notifications
You must be signed in to change notification settings - Fork 0
/
partner.php
80 lines (65 loc) · 1.94 KB
/
partner.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
77
78
79
80
<?php
$email=filter_input(INPUT_POST,'email');
$host="localhost";
$lhname="root";
$dbpassword="";
$dbname="testin";
$conn=new mysqli($host,$lhname,$dbpassword,$dbname);
if(mysqli_connect_error()){
die('connect error('.mysqli_connect_errno().') '.mysqli_connect_error());
}
else{
$sql="INSERT INTO email VALUES('$email')";
if($conn->query($sql)===TRUE){
echo "new record inserted succsesful";
}
else{
echo "error: ".$sql."<br>".$conn->error;
}
$conn->close();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>my online shopping website</title>
<style>
.write{
height: 200px;
width: 100%;
}
.email{
height: 50px;
width: 20%;
}
h2 a{
text-align:center;
font-size:60px;
}
</style>
</head>
<link href="webcss.css" type="text/css" rel="stylesheet">
<body>
<ul class="list" style="background-color: rgb(82, 4, 4);;">
<div>
<li class><a href="register.php">login</a></li>
<h2> <a href="shoppingnew.php"><img src="images/Ca.PNG " height="60px" width="150px"></a>
<img src="images/Capture.PNG " height="60px" width="250px"><a>Contact Partner</a></h2>
</div>
</ul>
<p>Enter product details such as color, size, materials etc. and other specification requirements to receive an accurate quote.</p>
<input type="text"name="text"placeholder="comments" class="write">
<p>Please enter your email addfress</p>
<form method="post" action="login.php">
<div class="frm">
<tr>
<td> <input type="email" name="email" class="textinput"></td>
</tr>
<tr>
<td> <input type="submit" name="register_btn" value="submit "></td>
</tr>
</div>
</form>
</ul>
</body>
</html>