/
example.html
executable file
·77 lines (71 loc) · 2.41 KB
/
example.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Test Form</title>
<style type='text/css'>
p, table, td, input, select
{
font-family: arial;
font-size: 8pt;
}
.html
{
margin: 15px;
font-family: courier;
}
</style>
</head>
<body>
<table width='600' align='center'>
<tr>
<td>
<br />
<p><b><u>Test Form</u></b></p>
<p>This simple form illustrates how to use the <b>email.php</b> script. In order to
get it running, upload both this and the email.php script to the same folder on
your server. Next edit this page and update the values for the hidden fields
(recipient & redirect_page), then check the <b>readme.txt</b> file for
instructions on how to configure the email.php script to be allowed to send
emails from this URL.</p>
<form action="email.php" method="post">
<input type='hidden' name='recipient' value='recipient@mysite.com' />
<input type='hidden' name='email_from' value='from@mysite.com' />
<input type='hidden' name='reply_to' value='reply_to@server.com' />
<input type='hidden' name='email_subject' value='This is the subject' />
<input type='hidden' name='redirect_page' value='http://www.google.com' />
<table width='100%' style='border: 1px solid black; background-color: #efefef'>
<tr>
<td>Name:</td>
<td><input type='textbox' name='Name' value='' /></td>
</tr>
<tr>
<td>Gender:</td>
<td>
<input type='radio' name='Gender' value='Female' checked />Female
<input type='radio' name='Gender' value='Male' />Male
<input type='radio' name='Gender' value='Both' />Both
<input type='radio' name='Gender' value='Other' />Other
</td>
</tr>
<tr>
<td>Marital Status:</td>
<td><select name="Marital Status">
<option value="Married">Married</option>
<option value="Single">Single</option>
<option value="Divorced">Divorced</option>
<option value="None of your Business">None of your Business</option>
</select>
</td>
</tr>
<tr>
<td>Comments:</td>
<td><textarea style='width: 100%; height: 80px;' name='Comments' /></textarea></td>
</tr>
</table>
<p><input type='submit' value='SEND EMAIL' /></p>
</form>
</td>
</tr>
</table>
</body>
</html>