-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
63 lines (59 loc) · 1.71 KB
/
contact.php
File metadata and controls
63 lines (59 loc) · 1.71 KB
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
<?php
include_once 'header.php';
include_once 'sqlFunctions.php';
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/contact.css">
</head>
<?php
if(isset($_POST['submit'])){
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$country = $_POST['country'];
$subject = $_POST['subject'];
kontakto($firstname,$lastname,$country,$subject);
}
?>
<body>
<div class="container">
<form action="contact.php" method="post">
<label for="firstname">First Name</label>
<input
type="text"
id="firstname"
name="firstname"
placeholder="Your name.."
/>
<label for="lastname">Last Name</label>
<input
type="text"
id="lname"
name="lastname"
placeholder="Your last name.."
/>
<label for="country">Country</label>
<select id="country" name="country">
<option value="australia">Australia</option>
<option value="canada">Canada</option>
<option value="usa">USA</option>
<option value="kosovo">Kosovo</option>
<option value="bulgaria">Bulgaria</option>
<option value="albania">Albania</option>
</select>
<label for="subject" name="subject">Subject</label>
<textarea
id="subject"
name="subject"
placeholder="Write something.."
style="height: 200px"
></textarea>
<input type="submit" name="submit" value="Submit" />
</form>
</div>
</body>
</html>
<?php
include_once 'footer.php'
?>