Forums

Paid Member Needs a Little Help

mobileguy 25 Aug, 2009
I created a form and pasted the script into Chronoforms and was curious if anyone can tell me what I need to do to get it to work right. The form works it just doesn't submit the inputed info.

Here is the Form Code "Also how would I add validation to the name and email field?"
<style TYPE="text/css">label {font-weight:bold;vertical-align:middle;}input,textarea,select {border:solid 2px #bcbcbc;font-size:20px;margin-bottom:5px;width:300px;}input.submit {width:auto;border-width:2px 4px 4px 2px;}textarea {height:200px;}#map {border:solid 2px #bcbcbc;width:360px;}	.required {color:#cb273d;font-weight:bold;}input,select {color:#10A1DC;font-weight:bold;padding:5px;width:290px;background-color:#F7F7F7;border:solid 2px #BEBEBE;font-size:1.2em;}input.submit {color:#444a4d;width:151px;height:34px;border:none;}input.submit2 {color:#444a4d;width:222px;height:34px;border:none;}.input.checkbox input {width:auto;float:left;}input:focus,textarea:focus {background-color:#fffdcb;}input.submit:focus {background:none;border:none;}textarea {font-family:Verdana;font-size:1em;color:#10A1DC;padding:5px;font-weight:bold;background-color:#F7F7F7;}</style>
<h1> Got a question?</h1>
	<fieldset style="display:none;"><input type="hidden" name="_method" value="POST" /></fieldset><div class="input text required"><label for="ContactName">Name<span class="required">*  </span></label><input name="data[Contact][name]" type="text" maxlength="150" class="contact" value="" id="ContactName" /></div><div class="input text required"><label for="ContactEmail">Email <span class="required">*  </span></label><input name="data[Contact][email]" type="text" maxlength="150" class="contact" value="" id="ContactEmail" /></div><div class="input text"><label for="ContactPhone">Phone  </label><input name="data[Contact][phone]" type="text" class="contact" value="" id="ContactPhone" /></div><div class="input select"><label for="ContactSubject">Subject  </label><select name="data[Contact][subject]" class="contact" id="ContactSubject">
<option value="Sales Enquiry">Sales Enquiry</option>
<option value="Technical Enquiry">Technical Enquiry</option>
<option value="General Enquiry">General Enquiry</option>
<option value="Job Enquiry">Job Enquiry</option>
</select></div><div class="input textarea required"><textarea name="data[Contact][message]" cols="20" rows="6" class="contact medium" id="ContactMessage" ></textarea></div>	<div class="rel mediumBig alignRight"><input type="image" class="submit" id="registerSubmit" src="images/submit.png" /></div>
	<div class="clear clearBig"> </div>
	




Here is my auto generated Template code "It doesn't look right"
Name*  {data[Contact][name]}
Email *  {data[Contact][email]}
Phone  {data[Contact][phone]}
Subject  {data[Contact][subject]}
{data[Contact][message]}
{This_element_has_no_name_attribute}
mobileguy 26 Aug, 2009
Was answered by Max.. Thank You!
This topic is locked and no more replies can be posted.