|
Update
if((document.forms["commentform"].author.value.length !== 0) && (document.forms["commentform"].body.length !== 0)) {
i think the problem is in that line. which ever i form field is first whether it be author or body is the deciding factor for if the statement evaluates to true, i only want that to evaluta to true if they're both not empty. that way i have another level of control for flooding, they cant submit an empty form because the button is disabled. its not much of a defense, but the more layers of control you have the better.
can someone please help with the problem
|