Skip to content

Instantly share code, notes, and snippets.

@rotaris
Created September 13, 2011 08:47
Show Gist options
  • Select an option

  • Save rotaris/1213433 to your computer and use it in GitHub Desktop.

Select an option

Save rotaris/1213433 to your computer and use it in GitHub Desktop.
Sample Upload Form for PHPMailer-FE v4.0.6
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset="iso-8859-1" />
<html>
<head>
<title>Sample form from WorxWare.com</title>
<style>
body, p, table, th, td, div {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
th {
background-color:#0080C0;
color:white;
font-weight:bold;
font-size:18px;
border: 1px solid #0080C0;
}
input.text, textarea {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
width: 99%;
}
.text:focus, textarea:focus {
background-color: #FFFACC;
border: 1px solid #000000;
}
#mydiv {
margin-left: auto ;
margin-right: auto ;
width: 500px;
text-align: left;
}
td.colone {
text-align: right;
vertical-align: top;
padding-top:6px;
width:20%;
}
td.coltwo {
color:red;
text-align: center;
vertical-align: top;
padding-top:9px;
}
td.colthree {
width:80%
}
table.border {
border: 1px solid #0080C0;
border-collapse: collapse;
}
</style>
</head>
<body>
<div id="mydiv">
<form method="POST" action="AAAAAA" enctype="multipart/form-data">
<input type="hidden" value="form.html" name="referer">
<input type="hidden" name="recipient" value="[email protected]" />
<input type="hidden" name="title" value=" phpmailer-fe.ph Attachment Test" />
<input type="hidden" name="subject" value="[phpmailer-fe.ph Attachment Test]" />
<input type="hidden" name="return_link_title" value="Back to Main Page" />
<table class="border" width="500" cellpadding="3" cellspacing="0">
<tr>
<th colspan="3" align="center">WorxWare.com Sample Form</th>
</tr>
<tr>
<td colspan="3"><div style="height:5px;"></div></td>
</tr>
<tr>
<td class="colone">First Name</td>
<td class="coltwo">*</td>
<td class="colthree"><input class="text" type="text" name="frmFirstname" style="width:98%;"></td>
</tr>
<tr>
<td class="colone">Last Name</td>
<td class="coltwo">*</td>
<td class="colthree"><input class="text" type="text" name="frmLastname" style="width:98%;"></td>
</tr>
<tr>
<td class="colone">Qty1</td>
<td class="coltwo">&nbsp;</td>
<td class="colthree"><input class="text" type="text" name="frmQty_1" style="width:98%;"></td>
</tr>
<tr>
<td class="colone">Unit Price1</td>
<td class="coltwo">&nbsp;</td>
<td class="colthree"><input class="text" type="text" name="frmUnitPrice_1" style="width:98%;"></td>
</tr>
<tr>
<td class="colone">Qty2</td>
<td class="coltwo">&nbsp;</td>
<td class="colthree"><input class="text" type="text" name="frmQty_2" style="width:98%;"></td>
</tr>
<tr>
<td class="colone">Unit Price2</td>
<td class="coltwo">&nbsp;</td>
<td class="colthree"><input class="text" type="text" name="frmUnitPrice_2" style="width:98%;"></td>
</tr>
<tr>
<td class="colone">Email</td>
<td class="coltwo">*</td>
<td class="colthree"><input class="text" type="text" name="email" style="width:98%;"></td>
</tr>
<tr>
<td class="colone">Message</td>
<td class="coltwo">&nbsp;</td>
<td class="colthree"><textarea class="text" name="frmMessage" style="width:98%;height:50px;"></textarea></td>
</tr>
<tr>
<td class="colone">Upload 1</td>
<td class="coltwo">&nbsp;</td>
<td class="colthree"><input type="file" name="file1" size="50"><br /><small> only accept files with extensions: doc|xls|pdf|jpg|jpeg|png|gif|zip|rar|gz</small></td>
</tr>
<tr>
<td class="colone">Upload 2</td>
<td class="coltwo">&nbsp;</td>
<td class="colthree"><input type="file" name="file2" size="50"><br /><small> only accept files with extensions: doc|xls|pdf|jpg|jpeg|png|gif|zip|rar|gz</small></td>
</tr>
<tr>
<td class="colone" colspan="2">&nbsp;</td>
<td class="colthree"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></td>
</tr>
<tr>
<td colspan="3"><div style="height:5px;"></div></td>
</tr>
</table>
</form>
<span style="color:red;">*</span> = required<br />
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment