I'm a newbie to ASP, so I've used a pre-made script to create a contact page that not only sends an e-mail via CDONTS but also writes the entries to a database.
In the past I've used the Check Form Dreamweaver extension (by Jaro von Flocken) to validate the text boxes, check box etc but this doesn't seem to work with this particular script (it has done with other ASP pages).
I don't get any error messages, but the form is still submitted even when fields are empty, which is what I don't want. I wonder if the Javascript is getting "taken over" by this line:
<%
if request.form("Submit"
<> "Submit" then
%>
What does this line actually do? Can I take it out or replace it with something else?! The next line is just <form action="contact.asp" method="POST">. Please let me know if you need me to post the page's code (it's quite long).
Many thanks.
Visit my ice hockey site at:
In the past I've used the Check Form Dreamweaver extension (by Jaro von Flocken) to validate the text boxes, check box etc but this doesn't seem to work with this particular script (it has done with other ASP pages).
I don't get any error messages, but the form is still submitted even when fields are empty, which is what I don't want. I wonder if the Javascript is getting "taken over" by this line:
<%
if request.form("Submit"
%>
What does this line actually do? Can I take it out or replace it with something else?! The next line is just <form action="contact.asp" method="POST">. Please let me know if you need me to post the page's code (it's quite long).
Many thanks.
Visit my ice hockey site at: