View Single Post
Old 12-05-2004, 08:56 AM   #3 (permalink)
falsepride
Regular Contributor
 
Join Date: Oct 2004
Posts: 203
falsepride is on a distinguished road
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
falsepride is offline   Reply With Quote