Re: Form text field default & validation

Well, presumably all you would have to do is check that the text field 
isn't empty *and* doesn't contain the default text. Something like...

if ((textfield == '') || (textfield == 'default text')) {
	echo "You need to fill out all the forms";
}

What are you using to validate the form anyway? Javascript? PHP?

Josh


> I have been searching for a solution to this dilemma, perhaps I am 
> searching using the wrong keywords, I have not found a solution.
> 
> I want to validate my form so that the required fields each contain 
> data, entered by the submitter.  Accessibility demands that a text 
> area field contain default text.  When default text is included for a 
> form field it validates automatically, and the submitter does not 
> receive a reminder to fill in the required fields.
> 
> How can I include default information in the text field AND validate 
> that same text field?
> 
> Thanks
> Donna

Received on Monday, 31 March 2003 14:26:17 UTC