Help with autoresponder form code
Here is the HTML code for the sumbit form box on my website:
</div>
<div class="row">
<div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-2 col-md-offset-2 col-sm-offset-2">
<div class="report">
<div class="row">
<div class="report_logo">
<img src="images/advertizing%20report.png" alt="">
<div class="report_logo_text">
<h5>Free</h5>
<p>Advertising E-Book</p>
</div>
</div>
</div>
<div class="row">
<div class="report_contact">
<div class="report_info left">
<form action="action_page.php" method="POST">
Name: <input type="text" size="8" maxlength="40" name="name" placeholder="">
<br>
<div class="email">
<form action="action_page.php" method="POST">
email: <input type="text" size="8" maxlength="40" name="name" placeholder="">
</form>
</div>
</form>
</div>
<div class="submit left">
<form action="action_page.php" method="POST">
<input type="submit" value="Get
Report
">
</form>
</div>
</div>
And here is the code from the form autogenerated:
<body>
<!--
Do not modify the NAME value of any of the INPUT fields
the FORM action, or any of the hidden fields (eg. input type=hidden).
These are all required for this form to function correctly.
-->
<style type="text/css">
.myForm td, input, select, textarea, checkbox {
font-family: tahoma;
font-size: 12px;
}
.required {
color: red;
}
</style>
<form method="post" action="http://mbgrey.com/email/form.php?form=2" id="frmSS2" onsubmit="return CheckForm2(this);">
<table border="0" cellpadding="2" class="myForm">
<tr>
<td> First Name:</td>
<td><input type="text" name="CustomFields[2]" id="CustomFields_2_2" value="" size='50'></td>
</tr><tr>
<td><span class="required">*</span>
Your Email Address:</td>
<td><input type="text" name="email" value="" /></td>
</tr><tr>
<td><span class="required">*</span>
Preferred Format:</td>
<td><select name="format"><option value="h">HTML</option><option value="t">Text</option></select></td>
</tr><tr>
<td><span class="required">*</span>
Enter the security code shown:</td>
<td><script type="text/javascript">
// <![CDATA[
if (!Application) var Application = {};
if (!Application.Page) Application.Page = {};
if (!Application.Page.ClientCAPTCHA) {
Application.Page.ClientCAPTCHA = {
sessionIDString: '',
captchaURL: [],
getRandomLetter: function () { return String.fromCharCode(Application.Page.ClientCAPTCHA .getRandom(65,90)); },
getRandom: function(lowerBound, upperBound) { return Math.floor((upperBound - lowerBound + 1) * Math.random() + lowerBound); },
getSID: function() {
if (Application.Page.ClientCAPTCHA.sessionIDString.le ngth <= 0) {
var tempSessionIDString = '';
for (var i = 0; i < 32; ++i) tempSessionIDString += Application.Page.ClientCAPTCHA.getRandomLetter();
Application.Page.ClientCAPTCHA.sessionIDString.len gth = tempSessionIDString;
}
return Application.Page.ClientCAPTCHA.sessionIDString;
},
getURL: function() {
if (Application.Page.ClientCAPTCHA.captchaURL.length <= 0) {
var tempURL = 'http://mbgrey.com/email/admin/resources/form_designs/captcha/index.php?c=';
tempURL += Application.Page.ClientCAPTCHA.getRandom(1,1000);
tempURL += '&ss=' + Application.Page.ClientCAPTCHA.getSID();
Application.Page.ClientCAPTCHA.captchaURL.push(tem pURL);
}
return Application.Page.ClientCAPTCHA.captchaURL;
}
}
}
var temp = Application.Page.ClientCAPTCHA.getURL();
for (var i = 0, j = temp.length; i < j; i++) document.write('<img src="' + temp[i] + '" alt="img' + i + '" />');
// ]]>
</script>
<br/><input type="text" name="captcha" value="" /></td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" value="Subscribe" />
<br/>
</td>
</tr>
</table>
</form>
<script type="text/javascript">
// <![CDATA[
function CheckMultiple2(frm, name) {
for (var i=0; i < frm.length; i++)
{
fldObj = frm.elements[i];
fldId = fldObj.id;
if (fldId) {
var fieldnamecheck=fldObj.id.indexOf(name);
if (fieldnamecheck != -1) {
if (fldObj.checked) {
return true;
}
}
}
}
return false;
}
function CheckForm2(f) {
var email_re = /[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/i;
if (!email_re.test(f.email.value)) {
alert("Please enter your email address.");
f.email.focus();
return false;
}
if (f.format.selectedIndex == -1) {
alert("Please choose a format to receive your email campaigns in");
f.format.focus();
return false;
}
if (f.captcha.value == "") {
alert("Please enter the security code shown");
f.captcha.focus();
return false;
}
return true;
}
// ]]>
</script>
<!-- end of script for autoresponder script -->
</body>
If anyone knows where to start please let me know. Thanks.
https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
https://www.unicommercesolutions.com <- WordPress Websites and Maintenance