all groups > flash actionscript > september 2005 >
You're in the

flash actionscript

group:

Form Validation


Form Validation JasonHarper
9/4/2005 10:10:24 PM
flash actionscript:
Hello,
I have a simple form with three textboxes (name, email and phone). If there
an easy way to:

a) make sure something has been entered in each box
b) make sure the email address and phone number are formatted correctly

I've read some things on the internet, but nothing that seems to be real
definitive. Any help would be fantastic!

Thank you!
Jason
Re: Form Validation timdenty
9/12/2005 9:33:17 AM
You could try adding something along the following lines...

if (name != "" && name != undefined && email != "" && email != undefined &&
address != "" && address != undefined && comment != "") { YOUR CODE HERE }

where 'name' 'email' and 'address' are the var names of your input text fields.

T
AddThis Social Bookmark Button