ginsul

captcha_snippet

Feb 21st, 2019
772
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- Note :
  2.    - You can modify the font style and form style to suit your website.
  3.    - Code lines with comments ���Do not remove this code���  are required for the form to work properly, make sure that you do not remove these lines of code.
  4.    - The Mandatory check script can modified as to suit your business needs.
  5.    - It is important that you test the modified form before going live.
  6.    - Do not remove captcha and other form elements that are necessary for the form to work.  -->
  7. <div id='crmWebToEntityForm' style='width:600px;margin:auto;'>
  8.    <META HTTP-EQUIV ='content-type' CONTENT='text/html;charset=UTF-8'>
  9.    <form action='https://crm.zoho.eu/crm/WebToLeadForm' name=WebToLeads87715000003842019 method='POST' onSubmit='javascript:document.charset="UTF-8"; return checkMandatory87715000003842019()' accept-charset='UTF-8'>
  10.  
  11. <!-- Do not remove this code. -->
  12. <input type='text' style='display:none;' name='xnQsjsdp' value='60ac0ac0397c07c52d9395ae5b98b5979f36f00bcea2503db63edf207dab027e'/>
  13. <input type='hidden' name='zc_gad' id='zc_gad' value=''/>
  14. <input type='text' style='display:none;' name='xmIwtLD' value='279c70e500813ab734d77ea616ff494145d8e36a647e8a7e584f4d6718659caf'/>
  15. <input type='text' style='display:none;'  name='actionType' value='TGVhZHM='/>
  16.  
  17. <input type='text' style='display:none;' name='returnURL' value='https&#x3a;&#x2f;&#x2f;acj.rolbac.org&#x2f;thanks-for-message' />
  18. <!-- Do not remove this code. -->
  19. <style>
  20. tr , td {
  21. padding:6px;
  22. border-spacing:0px;
  23. border-width:0px;
  24. }
  25. </style>
  26. <table style='width:600px;background-color:white;color:black'>
  27.  
  28. <tr><td colspan='2' style='text-align:left;color:black;font-family:Arial;font-size:14px;'><strong>ACJ Contact Form</strong></td></tr>
  29.  
  30. <tr><td  style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>First Name</td><td style='width:250px;' ><input type='text' style='width:250px;'  maxlength='40' name='First Name' /></td></tr>
  31.  
  32. <tr><td  style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>Last Name<span style='color:red;'>*</span></td><td style='width:250px;' ><input type='text' style='width:250px;'  maxlength='80' name='Last Name' /></td></tr>
  33.  
  34. <tr><td  style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>Email<span style='color:red;'>*</span></td><td style='width:250px;' ><input type='text' style='width:250px;'  maxlength='100' name='Email' /></td></tr>
  35.  
  36. <tr><td  style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>Message </td><td> <textarea name='Description' maxlength='32000' style='width:250px;'>&nbsp;</textarea></td></tr>
  37.  
  38. <tr style='display:none;' ><td style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:50%'>Lead Source</td><td style='width:250px;'>
  39. <select style='width:250px;' name='Lead Source'>
  40. <option value='-None-'>-None-</option>
  41. <option value='Advertisement'>Advertisement</option>
  42. <option value='Inbound&#x20;Enquiry'>Inbound Enquiry</option>
  43. <option value='Cold&#x20;Call'>Cold Call</option>
  44. <option value='Employee&#x20;Referral'>Employee Referral</option>
  45. <option value='External&#x20;Referral'>External Referral</option>
  46. <option value='Partner'>Partner</option>
  47. <option value='Public&#x20;Relations'>Public Relations</option>
  48. <option value='Trade&#x20;Show'>Trade Show</option>
  49. <option value='Web&#x20;Form'>Web Form</option>
  50. <option value='Search&#x20;Engine'>Search Engine</option>
  51. <option value='Facebook'>Facebook</option>
  52. <option value='Twitter'>Twitter</option>
  53. <option value='Online&#x20;Store'>Online Store</option>
  54. <option value='Seminar&#x20;Partner'>Seminar Partner</option>
  55. <option value='Web&#x20;Download'>Web Download</option>
  56. <option value='LB&#x20;Database'>LB Database</option>
  57. <option selected value='ACJ&#x20;Webform'>ACJ Webform</option>
  58. </select></td></tr>
  59.  
  60. <tr><td style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>Enter the Captcha</td>
  61.    <td><input type='text' style='width:250px;' maxlength='80' name='enterdigest' /></td>
  62. </tr>
  63.  
  64. <tr><td></td>
  65. <!-- Do not remove this code. -->
  66.    <td><img id='imgid' src='https://crm.zoho.eu/crm/CaptchaServlet?formId=279c70e500813ab734d77ea616ff494145d8e36a647e8a7e584f4d6718659caf&grpid=60ac0ac0397c07c52d9395ae5b98b5979f36f00bcea2503db63edf207dab027e'>
  67.    <a href='javascript:;' onclick='reloadImg()'>Reload</a></td>
  68. </tr>
  69.  
  70. <tr><td colspan='2' style='text-align:center; padding-top:15px;font-size:12px;'>
  71. <input style='font-size:12px;color:black'  type='submit' value='Submit' />
  72. <input  type='reset' style='font-size:12px;color:black' value='Reset' />
  73.    </td>
  74. </tr>
  75.    </table>
  76. <script>
  77.    var mndFileds=new Array('Last Name','Email');
  78.    var fldLangVal=new Array('Last Name','Email');
  79. var name='';
  80. var email='';
  81.  
  82.   /* Do not remove this code. */
  83.    function reloadImg() {
  84. if(document.getElementById('imgid').src.indexOf('&d') !== -1 ) {
  85.    
  86.  document.getElementById('imgid').src=document.getElementById('imgid').src.substring(0,document.getElementById('imgid').src.indexOf('&d'))+'&d'+new Date().getTime();
  87. }  else {
  88.    
  89.  document.getElementById('imgid').src = document.getElementById('imgid').src+'&d'+new Date().getTime();
  90. }
  91.   }
  92.  
  93.    function checkMandatory87715000003842019() {
  94. for(i=0;i<mndFileds.length;i++) {
  95.  var fieldObj=document.forms['WebToLeads87715000003842019'][mndFileds[i]];
  96.  if(fieldObj) {
  97. if (((fieldObj.value).replace(/^\s+|\s+$/g, '')).length==0) {
  98. if(fieldObj.type =='file')
  99. {
  100. alert('Please select a file to upload.');
  101. fieldObj.focus();
  102. return false;
  103. }
  104. alert(fldLangVal[i] +' cannot be empty');
  105.      
  106.    fieldObj.focus();
  107.      
  108.    return false;
  109. }  else if(fieldObj.nodeName=='SELECT') {
  110.    
  111.   if(fieldObj.options[fieldObj.selectedIndex].value=='-None-') {
  112. alert(fldLangVal[i] +' cannot be none');
  113. fieldObj.focus();
  114. return false;
  115.   }
  116. } else if(fieldObj.type =='checkbox'){
  117.   if(fieldObj.checked == false){
  118. alert('Please accept  '+fldLangVal[i]);
  119. fieldObj.focus();
  120. return false;
  121.   }
  122. }
  123. try {
  124.     if(fieldObj.name == 'Last Name') {
  125. name = fieldObj.value;
  126.      }
  127. } catch (e) {}
  128.    }
  129. }
  130.     }
  131.  
  132. </script>
  133. </form>
  134.   <!-- Do not remove this code. -->
  135.      <iframe name='captchaFrame' style='display:none;'></iframe>
  136. </div>
Advertisement
Add Comment
Please, Sign In to add comment