• Hi,

    I have installed this Plugin “Insert HTML Snippet” by XYZScripts and activated it. I want to use this plugin to make a custom HTML Contact form therefore I put the HTML code inside the box (the one which I made) and than saved it. But I am facing a serious problem on the Front-end, I want to send the Message using the Send button, but the Contact form is not working.

    This is the code which I have made and put inside the HTML box:

    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contact">
      <tr>
        <td width="565">
    		<h3>Contact Form</h3>
    <div class="text16">Please fill all the fields</div>
    
    <ul>
    <li><input type="text" name="name" id="name" value="Your Name" onblur="if(this.value=='') this.value='Your Name';" onfocus="if(this.value=='Your Name') this.value='';" /></li>
    <li><input type="text" name="name" id="name" value="Your Email" onblur="if(this.value=='') this.value='Your Email';" onfocus="if(this.value=='Your Email') this.value='';" /></li>
    <li><input type="text" name="name" id="name" value="Your Telephone" onblur="if(this.value=='') this.value='Your Telephone';" onfocus="if(this.value=='Your Telephone') this.value='';" /></li>
    <li>
    <textarea name="" cols="" rows="" onblur="if(this.value=='') this.value='Message';" onfocus="if(this.value=='Message') this.value='';"
      class="inner_inputbox">Message</textarea></textarea></li>
    <li><input name="Senden" type="button"  value="Senden" class="senden"/></li>
    </ul>
    	</td>
         </tr>
    </table>
    <script type='text/javascript'>
    // <![CDATA[
    
        var frmvalidator  = new Validator("contactus");
        frmvalidator.EnableOnPageErrorDisplay();
        frmvalidator.EnableMsgsTogether();
        frmvalidator.addValidation("name","req","Please provide your name");
    
        frmvalidator.addValidation("email","req","Please provide your email address");
    
        frmvalidator.addValidation("email","email","Please provide a valid email address");
    
        frmvalidator.addValidation("message","maxlen=2048","The message is too long!(more than 2KB!)");
    // ]]>
    </script>


    [Please use the code buttons – as is your code may have been damaged]

    Can you please let me know, why the Contact form is not working?

    Hope to hear from you soon.

    Kind Regards,
    roger_klear

  • The topic ‘HTML snippet help’ is closed to new replies.