Page is a not externally linkable
stevenb_1959 - 11:51 pm on Apr 16, 2010 (gmt 0)
I want to add a text field to my form that would be to post a visitors phone number. I dont know much about PHP and I bought the script pre_built as is to email the form information to my email.
Here is the code:
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script>
<style>
.textfieldServerError {
display:block;
margin:0px;
color:#CC3333;
border: 1px solid #CC3333;
}
</style>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css" />
<!-- InstanceEndEditable -->
<style type="text/css" media="screen">
<!--
@import url("../css/stevesstyles.css");
.style2 {color: #FF0000}
-->
</style>
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<br />
<form action="" method="post" name="emailContact" id="emailContact" onsubmit="">
<div style="width:inherit">
<label for="Contact_Name" >Your name:</label>
<br />
<span id="sprytextfield1">
<input name="Contact_Name" type="text" class="inputValue" id="Contact_Name" onblur="if (document.getElementById('nameServerError')) document.getElementById('nameServerError').style.display='none'" value="" />
<span class="textfieldRequiredMsg">A value is required.</span></span>
<input name="addblock" type="text" id="addblock" style="display:none" value="" />
<br />
<label for="Email_address" >Email Address:</label>
<br />
<span id="sprytextfield2">
<input name="Email_address" type="text" class="inputValue" id="Email_address" onblur="if (document.getElementById('emailServerError')) document.getElementById('emailServerError').style.display='none'" value="" />
<span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
<input name="seconddblock" id="seconddblock" type="text" style="display:none" value="" />
<br />
<label for="Comments" >Comments:</label>
<br />
<span id="sprytextarea1">
<textarea name="Comments" class="inputText" id="Comments" onblur="if (document.getElementById('commentsServerError')) document.getElementById('commentsServerError').style.display='none'" ></textarea>
<span class="textareaRequiredMsg">A value is required.</span></span>
<br />
<label for="Security_code" >
Which day comes before sunday? </label>
<br />
<span id="sprytextfield4">
<input name="Security_question" type="text" class="inputValue" id="Security_question" onblur="if (document.getElementById('securityServerError')) document.getElementById('securityServerError').style.display='none'" maxlength="40" />
<span class="textfieldRequiredMsg">A value is required.</span></span>
<p>
<br />
<input type="submit" value="Submit" class="inputButton"/>
</p>
<p> </p>
<p> </p>
<p> </p>
</div>
</form>
<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur"]});
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "email", {validateOn:["blur"]});
var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1", {validateOn:["blur"]});
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "none", {validateOn:["blur"]});
//-->
</script>
Any help would be appreciated
Thanks
Steve