Thanks for that. I added it in as your suggestion
But now if you fill in the first 2 fields
and submit, the form is still accepted.
even with several further field missing.
What am I missing out?
Main Topics
Browse All TopicsI have a form checking script at this page.
But for some reason its doesn't work
and empty fields are accepted.
(they shouldn't be)
Can you say how to fix please?
http://www.pwrlettings.co.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
<script language="javascript">
<!--
function CheckForm()
{
var frm = document.formname;
if(frm.field_name.value == "")
{
alert('You must provide some data for field name');
frm.field_name.focus();
frm.field_name.select();
return false;
}
// the same [ if ] for all the inputs... just change the field_name
}
-->
</script>
<FORM NAME="formname" ACTION="http://www.google.
Business Accounts
Answer for Membership
by: meapledooPosted on 2004-05-22 at 02:50:35ID: 11132438
Hi astoller,
ings.co.uk /cgi-bin/m ailform.pl " method="post" onSubmit="return validateForm()">
Your <form> tag does not specify what to do when the form is submit. Since you already have a working JavaScript function to check the form, you need to insert onSubmit="return validateForm()". Before the form is submitted, your JavaScript will run. The return value prevents an erronous form from being submitted.
Here is the <form> tag from your page with the onSubmit statement:
<form name="Property to let" action="http://www.pwrlett
Regards,
meapledoo