-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
58 lines (48 loc) · 1.65 KB
/
contact.php
File metadata and controls
58 lines (48 loc) · 1.65 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
<?php
include 'connection.php';
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Home</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!---------------- CONTENT ------------------->
<main >
<header>
<?php
include 'nav.php';
?>
</header>
<div class="container-form">
<form action="mail.php" method="post">
<?php
if(isset($_GET['invalid'])) {
$msg = "يرجى كتابة الحقول كاملةً";
echo '<p style="color:red;">'.$msg.'</p>';
}
if(isset($_GET['done'])) {
$msg = "<p> تم ارسال الرسالة بنجاح </p>";
echo '<p style="color:green;">' .$msg.'</p>';
}
?>
<label for="fname">الاسم الاول</label>
<input type="text" id="fname" name="fname" placeholder="اكتب اسمك" require><br>
<label for="lname">البريد الإلكتروني</label>
<input type="email" id="fmail" name="fmail" placeholder="ايميلك" require><br>
<label for="subject">الرسالة</label>
<textarea id="subject" name="subject" placeholder="اكتب رسالتك." style="height:200px"></textarea><br>
<button name="send-email">ارسال</button>
</form>
</div>
</main>
<!---------------- FOOTER ------------------->
<?php
include 'footer.php'; ?>
<script src="js/index.js"></script>
</body>
</html>