Código Javascript:
Ver original
<script language="JavaScript"> var frmvalidator = new Validator("guestbook_entry"); frmvalidator.addValidation("email","email","Please enter a Email"); frmvalidator.addValidation("select","dontselect","Please select the subject"); frmvalidator.addValidation("name","req","Please enter your Name"); frmvalidator.addValidation("number","req","Please enter the Captcha"); frmvalidator.addValidation("comments","req","Please enter your comments"); </script>
Código HTML:
Ver original
<form name="guestbook_entry" method="post" action="new.php"> <table border="0" width='100%' cellpadding="5" cellspacing="5" class="section-left"> <tr> <td> <select align="right" name="select" type="text" id="select1" size="1"> </select> </td> </tr> <tr> </tr> <tr> </tr> <tr> </tr> <tr> </tr> <tr> <td>Please enter the string shown in the image above in the form.</td> </tr> <tr> </tr> </table> </form>