-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathfrontend.html
More file actions
32 lines (31 loc) · 1023 Bytes
/
frontend.html
File metadata and controls
32 lines (31 loc) · 1023 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/png" href="favicon.png">
<script src="https://www.google.com/recaptcha/api.js"></script>
</head>
<body>
<h2>Erik's HTML Company</h2>
<h3>Contact Us</h3>
<form id="contact-form" onsubmit="onSubmit()">
<label for="fname">First Name</label><br>
<input type="text" id="fname" name="fname" value=""><br>
<label for="lname">Last Name</label><br>
<input type="text" id="lname" name="lname" value=""><br>
<label for="pnum">Phone Number</label><br>
<input type="text" id="pnum" name="pnum" value=""><br>
</form>
<script>
function onSubmit(token)
{
console.log("Results");
document.getElementById("contact-form").submit();
console.log("First Name:" + document.getElementById("fname").value);
console.log("Last Name:" + document.getElementById("lname").value);
console.log("Phone Number:" + document.getElementById("pnum").value);
}
</script>
<button type="submit" form="contact-form" value="submit">Submit</button>
</body>
</html>