|
DwZone Forum Welcome to the DwZone-it Forum
|
Form Validator |
|
DwZone Forum Index -> Form Validator Moderators:
Administrators, Moderators |
Mark all topics read |
Hint: For improved responsiveness, use Internet Explorer
4 (or above) with Javascript enabled, choose 'Dynamic' from
the View dropdown and hit 'Set Options' to save your changes. |
Subject |
Author
|
Date |
|
|
|
Kevin Robson |
10:24 22 Jun 2013 |
|
|
Gianluigi |
10:30 22 Jun 2013 |
|
|
Kevin Robson |
11:34 22 Jun 2013 |
|
|
[email protected] |
16:49 4 Jun 2008 |
|
The form is not being validated? Here is the code --------------------------- <%@LANGUAGE="VBSCRIPT"%> <% '****************************** ' http://www.DwZone-it.com ' Server Side Form Validator ' Version 1.1.9 '****************************** Dim dwzValidator_0 Set dwzValidator_0 = new dwzServerSideValidator dwzValidator_0.SetFormName "contact_form" dwzValidator_0.SetMainMessage "The form contains errors or is incomplete" dwzValidator_0.SetCodeBefore "" dwzValidator_0.SetCodeAfter "" dwzValidator_0.SetClassName "None" dwzValidator_0.SetJsAlert "N" dwzValidator_0.SetReturnMethod "POST" dwzValidator_0.SetImageError "" dwzValidator_0.SetRedirect "", "2" dwzValidator_0.init() dwzValidator_0.add "Digital_Vs_Films", "select", "--", "NotFirst", ",", "The field ''Digital_Vs_Films'' is not valid" dwzValidator_0.add "Which_SLR", "select", "--", "NotFirst", ",", "The field ''Which_SLR'' is not valid" dwzValidator_0.add "Which_Medium_Format", "select", "--", "NotFirst", ",", "The field ''Which_Medium_Format'' is not valid" dwzValidator_0.add "Which_Large_Format", "select", "--", "NotFirst", ",", "The field ''Which_Large_Format'' is not valid" dwzValidator_0.add "Digital_Back", "select", "--", "NotFirst", ",", "The field ''Digital_Back'' is not valid" dwzValidator_0.add "Digital_equipment", "select", "--", "NotFirst", ",", "The field ''Digital_equipment'' is not valid" dwzValidator_0.add "System_that_you_use", "select", "--", "NotFirst", ",", "The field ''System_that_you_use'' is not valid" dwzValidator_0.add "Another_system", "select", "--", "NotFirst", ",", "The field ''Another_system'' is not valid" dwzValidator_0.add "Digital_assistant", "select", "--", "NotFirst", ",", "The field ''Digital_assistant'' is not valid" dwzValidator_0.add "Shoot_solution_perfect", "textarea", "Yes", "Any", ",,", "The field ''Shoot_solution_perfect'' is not valid" dwzValidator_0.add "IIdiko_Emma", "select", "--", "NotFirst", ",", "The field ''IIdiko_Emma'' is not valid" dwzValidator_0.add "Agreed_TC", "select", "--", "NotFirst", ",", "The field ''Agreed_TC'' is not valid" dwzValidator_0.add "Name", "text", "Yes", "Alphabetic", ",", "The field ''Name'' is not valid" dwzValidator_0.add "email", "text", "Yes", "Mail", ",", "The field ''email'' is not valid" dwzValidator_0.add "contact", "text", "Yes", "Integer,0,9", "", "The field ''contact'' is not valid" dwzValidator_0.add "recipient", "hidden", "Yes", "Any", ",", "The field ''recipient'' is not valid" dwzValidator_0.add "subject", "hidden", "Yes", "Any", ",", "The field ''subject'' is not valid" dwzValidator_0.validate() '****************************** ' http://www.DwZone-it.com ' Server Side Form Validator ' End code '****************************** %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Win a free digital shoot package - Republik</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="css/tex.css" rel="stylesheet" type="text/css"> </head>
<body bgcolor="#000000"> <form action="" method="post" name="contact_form" id="contact_form" > <table width="907" border="0" align="center" cellspacing="10"> <tr> <td colspan="3"><div align="center"><img src="rimag/logo1.jpg" alt="republik logo" width="292" height="292"></div></td> </tr> <tr> <td colspan="3"><div align="center"><img src="rimag/tag.jpg" alt="Photographer's questionnaire" width="412" height="32"></div></td> </tr> <tr> <td colspan="3"><img src="rimag/win.jpg" alt="win free digital shoot package" width="866" height="46"></td> </tr> <tr> <td colspan="3"> </td> </tr> <tr class="BigWhite"> <td colspan="3">1. How frequently would you say you shoot Digital Vs Films?</td> </tr> <tr class="BigWhite"> <td colspan="3"> <select name="Digital_Vs_Films" id="Digital_Vs_Films"> <option value="""">Please choose one of the following options:</option> <option value="I only shoot digital (1)">I only shoot digital</option> <option value="I only shoot film (4)">I only shoot film</option> <option value="I shoot more digital than film (2)">I shoot more digital than film</option> <option value="I shoot more film than digita l(3)">I shoot more film than digital</option> </select></td> </tr> <tr class="BigWhite"> <td colspan="2">2. Which camera would system(s) do you mainly work with?</td> <td width="34"> </td> </tr> <tr class="BigWhite"> <td colspan="3"> <table width="100%" border="0" cellspacing="0" class="BigWhite"> <tr> <td width="64"><div align="right">SLR:</div></td> <td width="142"><select name="Which_SLR" id="Which_SLR"> <option value="""" selected>--- Select ---</option> <option value="Canon (1)">Canon </option> <option value="Nikon (2)">Nikon</option> <option value="Other SLR (3)">Other SLR</option> <option value="None (0)">None </option> </select></td> <td width="153"><div align="right">Medium Format:</div></td> <td width="122"><select name="Which_Medium_Format" id="Which_Medium_Format"> <option value="""" selected>--- Select ---</option> <option value="Contax (3)">Contax</option> <option value="Hasselblad (1)">Hasselblad</option> <option value="Mamiya (2)">Mamiya</option> <option value="None (0)">None</option> </select></td> <td width="172"><div align="right">Large Format:</div></td> <td width="220"><select name="Which_Large_Format" id="Which_Large_Format"> <option value="""">--- Select ---</option> <option value="Cambo (3)">Cambo</option> <option value="Linhof (1)">Linhof</option> <option value="Sinar (2)">Sinar</option> <option value="None (0)">None</option> </select></td> </tr> </table></td> </tr> <tr class="BigWhite"> <td colspan="2">3. If you shoot medium format digital, which brand of digital back do you use?</td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2"> <select name="Digital_Back" id="Digital_Back"> <option value="""">Please choose one of the following options:</option> <option value="Leaf (3)">Leaf</option> <option value="Hasselbad (2)">Hasselbad</option> <option value="Phaseone (1)">Phaseone</option> <option value="Other (4)">Other</option> </select></td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2">4. Do you own any digital equipment?</td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2"> <select name="Digital_equipment" id="Digital_equipment"> <option value="""">Please choose one of the following options:</option> <option value="Yes, I own a digital back (3)">Yes, I own a digital back</option> <option value="Yes, I own a digital camera (2)">Yes, I own a digital camera</option> <option value="No, I hire digital equipment(1)">No, I hire digital equipment</option> </select></td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2">5. Why did you choose the particular digital system that you use?</td> <td> </td> </tr> <tr class="BigWhite"> <td height="27" colspan="2"> <select name="System_that_you_use" id="System_that_you_use"> <option value="""">Please choose one of the following options:</option> <option value="I tested several options myself to find the best solution to suit my needs (1)">I tested several options myself to find the best solution to suit my needs</option> <option value="My current system came highly recommend and I am happy so far (1)">My current system came highly recommend and I am happy so far</option> <option value="I chose my digital workflow based on the availability and/or cost of the equipment (1)">I chose my digital workflow based on the availability and/or cost of the equipment</option> </select></td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2">6. Would you consider trying a digital system with one of our digital operators for FREE? If so, which one?<br></td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2"> <select name="Another_system" id="Another_system"> <option value="""">Please choose one of the following options:</option> <option value="SLR Systems Canon 1DS MkIII (4)">SLR Systems Canon 1DS MkIII</option> <option value="Medium format with Hasselblad digital back (3)">Medium format with Hasselblad digital back</option> <option value="Medium format with PhaseOne digital back (1)">Medium format with PhaseOne digital back</option> <option value="Medium format with Leaf digital back (5)">Medium format with Leaf digital back</option> <option value="Large format with Phaseone back (2)">Large format with Phaseone back</option> </select></td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2">7. Do you use a digital assistant on shoots?</td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2"> <select name="Digital_assistant" id="Digital_assistant"> <option value="""">Please choose one of the following options:</option> <option value=" No, I shoot by myself (3)">No, I shoot by myself</option> <option value="Yes, I use my normal photographic assistant (2)">Yes, I use my normal photographic assistant </option> <option value=" Yes, I use a professional digital operator (1)">Yes, I use a professional digital operator</option> </select></td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2">8. Republik offers tailor made digital solutions for both location and studio shoots <br> If cost were not an issue, what would make your shoot solution perfect?<br></td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2"> <textarea name="Shoot_solution_perfect" cols="50" rows="15" id="Shoot_solution_perfect"></textarea></td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2">9. Would you like Ildiko or Emma to create the perfect digital shoot for you?</td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2"> <select name="IIdiko_Emma" id="IIdiko_Emma"> <option value="""">Please choose one of the following options:</option> <option value="I am very interested">I am very interested</option> <option value="I might be interested">I might be interested</option> </select></td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2"> 10. *Terms and conditions of competitions</td> <td> </td> </tr> <tr class="BigWhite"> <td colspan="2"> <table width='61%' border='0' cellpadding='4' cellspacing='0' > <tr bgcolor='#ffffff'> <td align=center ><div align="left" class="tc">Read terms and conditions </div> <p align="left" class="tc">a) Photographic shoot must be taken within 3 months from draw date.<br> b) Shoot date is subject to availability.<br> c) 14 days notice must be given before scheduled shoot date.<br> d) reserves the right to postpone or cancel the shoot date. <br> e) All additional items of travel, delivery & collection and overtime are charged. <br> f) Free shoot period is for one day, standard working hours 9am-6pm. <br> g) Consumable items are subject to charge. <br> h) If Photographer/winner cancels or postpones shoot date without adequate notice will result in forfeit of shoot package prize. <br> i) � Terms and Conditions� Apply. See staff for details. </p> <p></p></td> </tr> <tr> <td align=center bgcolor='#f1f1f1'><font face='verdana' size='2'><span class="tc"> Do you agree to our terms and conditions?</span> </font> <select name="Agreed_TC" id="Agreed T&C"> <option value="""">-- Select --</option> <option value="Yes">Yes</option> </select> <font face='verdana' size='2'> </font><font face='verdana' size='2'> </font></td> </tr> <tr bgcolor='#ffffff'> <td align=center > </td> </tr> </table> </td> <td> </td> </tr> <tr class="BigWhite"> <td width="116"> Name: </td> <td width="711"> <input name="Name" type="text" id="Name"></td> <td> </td> </tr> <tr class="BigWhite"> <td>Email: </td> <td> <input name="email" type="text" id="email"></td> <td> </td> </tr> <tr class="BigWhite"> <td>Website:</td> <td> <input name="website" type="text" id="website"></td> <td> </td> </tr> <tr class="BigWhite"> <td>Contact no:</td> <td> <input name="contact" type="text" id="contact" maxlength="11"></td> <td> </td> </tr> <tr class="BigWhite"> <td> </td> <td> <input type=submit value=Submit></td> <td> </td> </tr> <tr> <td colspan="2"> </td> <td> </td> </tr> </table> <input name="recipient" type="hidden" id="recipient" value="[email protected]"> <input name="subject" type="hidden" id="subject" value="Republik - Photographer's questionnaire"> <input type="hidden" id="dwzServerValidate" name="dwzServerValidate" value="contact_form" /> </form> </body> </html> <!--#include file="./dwzValidator/dwzValidatorClass.asp" --> <% '****************************** ' http://www.DwZone-it.com ' Server Side Form Validator '****************************** response.write(dwzValidator_0.getJsAlert()) set dwzValidator_0 = nothing '****************************** ' http://www.DwZone-it.com ' Server Side Form Validator '****************************** %>
|
|
|
|
|
|
|
gianluigi |
10:09 5 Jun 2008 |
|
|
[email protected] |
12:37 5 Jun 2008 |
|
|
gianluigi |
13:18 5 Jun 2008 |
|
|
Gianluigi |
13:03 22 Jun 2013 |
|
|
|
[email protected] |
5:38 3 Jun 2008 |
|
|
gianluigi |
9:56 3 Jun 2008 |
|
|
|
|
|
Read Message |
Unread message |
Read message [popular] |
Unread message [popular] |
Read message [locked] |
Unread message [locked] |
|
All times are GMT-1
|
|