-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
executable file
·130 lines (123 loc) · 6.26 KB
/
index.php
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php
include("include/session.php");
include("api/api.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta>
<title>DocuSign, Inc. ESIGN Sample</title>
<link href="css/style.css" rel="stylesheet" type="text/css"></link>
<script language="javascript" type="text/javascript" src="js/jquery-1.4.1.min.js"></script>
<script language="javascript" type="text/javascript" src="js/webservice-status.js"></script>
<script language="javascript" type="text/javascript" src="js/validation.js"></script>
<script language="javascript" type="text/javascript">
<!--
ini_set('display_errors', '0');
/**
* Validation the form and set validation errors if applicable.
*/
function checkForm() {
var why = "";
var signForm = document.forms[0];
why += isEmpty(signForm.FirstName.value, "FirstName");
why += isEmpty(signForm.LastName.value, "LastName");
why += isEmpty(signForm.Address1.value, "Address1");
why += isEmpty(signForm.City.value, "City");
why += isEmpty(signForm.State.value, "State");
why += isEmpty(signForm.ZIP.value, "ZIP");
why += checkPhone(signForm.Phone.value, "Phone");
why += checkEmail(signForm.Email.value, "Email" );
document.getElementById("formErrorText").innerHTML = why;
if (why != "") {
return false;
}
else {
return true;
}
}
// -->
</script>
</head>
<body>
<?php include("include/standardheader.php"); ?>
<div class="content-section">
<form style="margin: 0; padding: 0;" action="formhandler.php" id="signForm" method="post" onsubmit="return checkForm();">
<div id="formErrorText" class="red"></div>
First Name<br />
<input class="form" style="width: 300px;" name="FirstName" type="text" /><br />
Last Name<br />
<input class="form" style="width: 300px;" name="LastName" type="text" /><br />
Current Address<br />
<input class="form" style="width: 300px;" name="Address1" type="text" /><br />
<input class="form" style="width: 300px;" name="Address2" type="text" /><br />
City/State/ZIP<br />
<input class="form" style="width: 170px;" name="City" type="text" />
<select class="form" style="width: 50px;" id="Select1" name="State">
<option value="AL">AL</option>
<option value="AK">AK</option>
<option value="AZ">AZ</option>
<option value="AR">AR</option>
<option value="CA">CA</option>
<option value="CO">CO</option>
<option value="CT">CT</option>
<option value="DE">DE</option>
<option value="DC">DC</option>
<option value="FL">FL</option>
<option value="GA">GA</option>
<option value="HI">HI</option>
<option value="ID">ID</option>
<option value="IL">IL</option>
<option value="IN">IN</option>
<option value="IA">IA</option>
<option value="KS">KS</option>
<option value="KY">KY</option>
<option value="LA">LA</option>
<option value="ME">ME</option>
<option value="MD">MD</option>
<option value="MA">MA</option>
<option value="MI">MI</option>
<option value="MN">MN</option>
<option value="MS">MS</option>
<option value="MO">MO</option>
<option value="MT">MT</option>
<option value="NE">NE</option>
<option value="NV">NV</option>
<option value="NH">NH</option>
<option value="NJ">NJ</option>
<option value="NM">NM</option>
<option value="NY">NY</option>
<option value="NC">NC</option>
<option value="ND">ND</option>
<option value="OH">OH</option>
<option value="OK">OK</option>
<option value="OR">OR</option>
<option value="PA">PA</option>
<option value="RI">RI</option>
<option value="SC">SC</option>
<option value="SD">SD</option>
<option value="TN">TN</option>
<option value="TX">TX</option>
<option value="UT">UT</option>
<option value="VT">VT</option>
<option value="VA">VA</option>
<option value="WA">WA</option>
<option value="WV">WV</option>
<option value="WI">WI</option>
<option value="WY">WY</option>
</select>
<input class="form" style="width: 40px;" name="ZIP" type="text" /><br />
Phone<br />
<input class="form" style="width: 170px;" name="Phone" type="text" /><br />
Email address<br />
<input class="form" style="width: 170px;" name="Email" type="text" /><br />
<div style="margin-left: 230px;">
<input type="submit" style="background: url(images/apply.png); width:76px; height:23px; border: 0;" value="" />
<br />
</div>
<input type="hidden" name="formid" id="formid" value="form1">
</form>
</div>
<?php include("include/standardfooter.php"); ?>
</body>
</html>