-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.html
38 lines (32 loc) · 1.1 KB
/
main.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
<!-- create a hello world html page -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>My first web page</title>
<script type="text/javascript" language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/vbscript" language="VBScript">
<!--
Function getFormData()
Dim form
Set form = document.forms(0)
Dim formData
formData = "firstname=" & form.firstname.value & "&lastname=" & form.lastname.value & "&email=" & form.email.value
getFormData = formData
End Function
-->
</script>
</head>
<body>
<h1>Hello World</h1>
<!-- generate an html form that I can use to submit a first name, last name, and email address -->
<form action="main.html" name="form" id="form" method="post">
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname"><br>
Email: <input type="text" name="email"><br>
<!-- create a submit button -->
<input type="submit" value="Submit">
<!-- generate a submit button with the name submit and value submit -->
<input type="submit" name="submit" value="Submit">
</form>
</body>
</html>