-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirst_final.php
76 lines (57 loc) · 1.61 KB
/
first_final.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
<?php
//connect to the database
$mysqli = new mysqli( "mysql.onepotcooking.com", //db server
"scps", //username
"h?H#kjGj", //password
"classdb"); //database
//check for any errors
if ($mysqli->connect_errno) {
echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
}
//echo $mysqli->host_info . "\n";
//do a query on the database
//$mysqli->real_query("SELECT * FROM cpichardo_final_contact ORDER BY created DESC");
//$res = $mysqli->use_result();
?>
<html>
<head>
<title>Contact Us</title>
<link rel="stylesheet" type="text/css" href="css/final.css" />
</head>
<body>
<div id="contact_container_div">
<h1>Contact Us</h1>
<div>
<form action="process_contact.php" method="POST">
<label>Name:</label>
<br>
<input type="text" id="name" name="name" />
<br>
<br>
<label>E-Mail:</label>
<br>
<input type="text" id="email" name="email" />
<br>
<br>
<label>Phone:</label>
<br>
<input type="text" id="phone" name="phone" />
<br>
<br>
<label>Subject</label>
<br>
<input type="text" id="subject" name="subject" />
<br>
<br>
<label>Message:</label>
<br>
<textarea type="text" id="message" name="message">
</textarea>
<br>
<br>
<input type="submit" value="Submit" />
</form>
</div>
</div>
</body>
</html>