-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.html
65 lines (59 loc) · 3.36 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" />
<title>Contact-Form-PHP</title>
</head>
<body>
<main class="container">
<div class="text-center my-4">
<h1>Contact Us</h1>
<!-- Github widget (you can delete for your own utilisation) -->
<a class="github-button" href="https://github.com/raspgot/Contact-Form-PHP" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star raspgot/Contact-Form-PHP on GitHub">Give a star !</a>
</div>
<!-- Form -->
<div class="shadow rounded p-5">
<form action="AjaxForm.php" method="post" class="needs-validation" novalidate>
<!-- Alert status -->
<div id="alert-statut"></div>
<!-- Inputs -->
<div class="mb-3">
<label for="name" class="form-label fs-5">Name</label>
<input type="text" class="form-control" name="name" required />
<div class="valid-feedback">Name looks good</div>
<div class="invalid-feedback">Please provide a valid name</div>
</div>
<div class="mb-3">
<label for="email" class="form-label fs-5">E-mail</label>
<input type="email" class="form-control" name="email" aria-describedby="emailHelp" required />
<div id="emailHelp" class="form-text">Make sure to provide a valid email</div>
<div class="valid-feedback">Email looks good</div>
<div class="invalid-feedback">Please provide a valid email</div>
</div>
<div class="mb-4">
<label for="message" class="form-label fs-5">Message</label>
<textarea class="form-control" name="message" rows="4" required></textarea>
<div class="valid-feedback">The message looks good</div>
<div class="invalid-feedback">Please provide a valid message</div>
</div>
<!-- Submit button -->
<button type="submit" class="btn btn-primary px-5">
<div class="spinner-grow spinner-grow-sm me-2 d-none" id="loading-spinner" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<span>Submit</span>
</button>
<!-- IMPORTANT | Token value recaptcha -->
<input name="recaptcha-token" type="hidden" />
</form>
</div>
</main>
<script defer src="https://www.google.com/recaptcha/api.js?render=GOOGLE_PUBLIC_KEY"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<script src="AjaxForm.js"></script>
<!-- Github widget (you can delete for your own utilisation) -->
<script defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>