Quote:
Originally Posted by Giantg52
@Phillip M, that simply didn't work. Not sure if I was supposed to add anything, I tried messing with it a little bit but didn't get it to work.
|
Wel, it works for me

Perhaps the problem is that you have two opening braces { one (correctly) on the same line and another one (permissible but less good practice) on the following line.
xelawho told you to assign an id (as well as a name) to each element (form field) - you have not done that.
e.g.
First Name: <input type="text" name="fname"
id = "fname" value="" size="20" /><br />
But both of us have pointed out the inadequacy of this simple "validation".
and then address it with
if (document.getElementById("fname").value=="") { // place opening brace on the same line, not the folowing line
But both of us have pointed out the serious inadequacy of this simple "validation".