Validation on this form

sweet160 29 Nov, 2009
I copied this code from this forum and pasted it in a chronoform...
How can I get validation for the email and the required zones...

Also my mails dont arrive...

I didnt use the wizard...

lots of thanks

<fieldset>
<legend><strong>Your Details</strong></legend>
<p><label1 for="name">Your Name:</label1><input type="text" name="name" size="20"></p>
<p><label1 for="email">E-mail:</label1><input name="email" type="text" size="20">
<p><label1 for="dayphone">Day Phone:</label1><input type="text" name="day_phone" size="20">         </p>
<p><label1 for="evephone">Evening Phone:</label1><input type="text" name="night_phone" size="20"></p>
</p>
</fieldset><br />
<fieldset>
<legend><strong>When would you like this project to begin?</strong></legend> 


<br/>
<label2 for="month"><strong>Month</strong>
<select NAME="month" id="ff_elem203" size="1">
  <option SELECTED VALUE="none">Select Month</option>
  <option VALUE="Jan">Jan</option>
  <option VALUE="Feb">Feb</option>
  <option VALUE="Mar">Mar</option>
  <option VALUE="Apr">Apr</option>
  <option VALUE="May">May</option>
  <option VALUE="Jun">Jun</option>
  <option VALUE="Jul">Jul</option>
  <option VALUE="Aug">Aug</option>
  <option VALUE="Sep">Sep</option>
  <option VALUE="Oct">Oct</option>
  <option VALUE="Nov">Nov</option>
  <option VALUE="Dec">Dec</option>
</select></p></label2>
<br/>
<label2 for="year"><strong>Year</strong>
  <select name="select" id="year" size="1">
    <option value="2007" selected="selected">2007</option>
    <option value="2008">2008</option>
    <option value="2009">2009</option>
  </select>
</label2>

</fieldset><br/>
<fieldset>
<legend><strong>Your Enquiry is about:</strong></legend>
<div align="left">
<table border="0" width="90%" id="table4" align="left">
  <tr>
    <td width="150">
      <p><input TYPE="checkbox" NAME="ff_nm_Website[]" VALUE="info" id="ff_elem193">
        <label id="ff_lbl193" for="ff_elem193">Website Design </label>
        </p>
      <p><input TYPE="checkbox" NAME="ff_nm_NewMedia[]" VALUE="info" id="ff_elem194">
        <label id="ff_lbl194" for="ff_elem194">New Media </label>
        Design      
      <p>
        <input TYPE="checkbox" NAME="ff_nm_SoftwareBox[]" VALUE="info" id="ff_elem195">
        <label id="ff_lbl195" for="ff_elem195">SoftwareBox</label>
        Design      
      <p>
        <input TYPE="checkbox" NAME="ff_nm_Print[]" VALUE="info" id="ff_elem196">
        <label id="ff_lbl196" for="ff_elem196">Print Design (eg Poster)</label>
      </td>
    </tr>
</table>
</div>
<p></p>
<p><textarea COLS="30" NAME="other_info" id="ff_elem192" style="height: 63; width: 230" rows="4"></textarea>
</p>
</fieldset><br/>
<fieldset>
<legend><strong>The best way to contact you is</strong></legend>

<input type="checkbox" name="contact" value="phone"> By Telephone
<input type="checkbox" name="contact" value="email"> By Email </p>
</fieldset><br/>
<fieldset>
<legend><strong>Use the space below for additional questions & comments:</strong></legend>
<p><textarea COLS="30" NAME="other_info0" id="ff_elem205" style="height: 63; width: 230" rows="8"></textarea>
</p>
</fieldset><br/>
<fieldset><legend><strong>AntiSpam</strong></legend>
<div align="center">{imageverification}</div>
</fieldset>
</p>
<p align="center">
  <input type="submit" value="Send to JLS Design" name="Submit" style="font-weight: bold">       
  <input type="reset" value="Reset (cancel form)" name="reset" style="font-size: 8pt">
</p>
Max_admin 01 Dec, 2009
Hi sweet,

this is a custom code so you have a custom form, you can't use the wizard now!

to validate any fields, please turn on the validation under the validation tab and specify the fields names to validate!

please setup your emails, check the "setup emails" tutorial under our tutorials page here:
http://www.chronoengine.com/tutorials.html

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
sweet160 02 Dec, 2009
Yes that is working beautifully....

thanks so far!

Still having problems with getting the mails send though....
Max_admin 06 Dec, 2009
try to turn the debug ON in your form and show us the debug output after the form is submitted!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
sweet160 09 Dec, 2009
Thanks Maxx I found it by resetting my mail config!
This topic is locked and no more replies can be posted.