-
Notifications
You must be signed in to change notification settings - Fork 0
/
formProcessor.html
114 lines (56 loc) · 2.26 KB
/
formProcessor.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Result Size: 669 x 563
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>Summary of the Data</title>
<meta charset="utf-8">
<meta name="author" content="Guangyuan Yu">
<script>
function getQuery(vari){
var query=window.location.search.substring(1);
var vars = query.split('&');
for (var i = 0; i < vars.length; i++){
var pair = vars[i].split('=');
if (decodeURIComponent(pair[0]) == vari){
return decodeURIComponent(pair[1]);
}
}
}
function assign(){
var name = getQuery("accountName");
document.getElementById("aname").innerHTML = name;
var dname = getQuery("displayName");
document.getElementById("dname").innerHTML = dname;
var email = getQuery("email");
document.getElementById("email").innerHTML = email;
var number = getQuery("phone");
document.getElementById("phone").innerHTML = number;
var zip = getQuery("zcode");
document.getElementById("zcode").innerHTML = zip;
var date = getQuery("date");
document.getElementById("date").innerHTML = date;
var password = getQuery("password");
document.getElementById("password").innerHTML = password;
var currentTime = getQuery("currentTime");
document.getElementById("currentTime").innerHTML = currentTime;
document.getElementById("readable").innerHTML = Date(currentTime);
}
</script>
</head>
<body onload="assign()">
<table style="width:100%">
<tr>
<td><h2>Information</h2></td>
<td><h2>Data</h2></td>
</tr>
<tr>
<td>Account Name</td>
<td id="aname"></td>
</tr>
<tr>
<td>Display Name</td>
<td id="dname"></td>
</tr>
<tr>
<td>Email Address</td>
<td id="email"></td>