"Matt" <> wrote in message
news: om...
> I want to test the blank data in required field. If the user enter
> blank data, the following code still not work. But if I test for the
> length of a string, it doesn't work also, any ideas?? thanks!!
>
> if (InputForm.username.value == '')
> alert("username is required");
You might check for null values as well.
If the DB field is 'not required' it may be null.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.754 / Virus Database: 504 - Release Date: 9/6/2004