I have my form working with my validation, but when I try to validate the message area and I hit send, it sends the message to the email address with no message. I am also trying to validate my captcha code, but not to sure how to go about it. I couldnt post my whole page because I am new poster and not allow to due to the fact that I only have 5 posts.
Code:<script type="text/javascript"> function ValidateContactForm() { var name = document.ContactForm.name; var email = document.ContactForm.email; var text = document.ContactForm.text; if (name.value == "") { window.alert("Please enter your name."); name.focus(); return false; } if (email.value == "") { window.alert("Please enter a valid e-mail address."); email.focus(); return false; } if (email.value.indexOf("@", 0) < 0) { window.alert("Please enter a valid e-mail address."); email.focus(); return false; } if (comment.value == "") { window.alert("Please provide a detailed description or comment."); text.focus(); return false; } return true; } </script>
Submit Your Article
Forum Rules

Reply With Quote

