PDA

View Full Version : Completed form before send.



jiminsd
October 29th, 2000, 21:29
Probably right under my nose but how do I get my form to be fully completed before it can be sent?

jvv
October 30th, 2000, 04:41
Ugh... you need some form of validation. You could javascript to do it.

I'm not really familiar with it so I can't really help you with it... Maybe you someone else here can help you with that.

cds
November 3rd, 2000, 11:16
Most people would do serverside checking for security reasons, but if you insist on client side (before you submit), here is an example of the javascript:

if (theForm.some_element.length < 1)
{
alert("You forgot the some_element field.");
theForm.some_element.focus();
return (false);
}

This will warn the reader and bring him back to the element (bring it into focus).