Conditional Flash Form

Hi All - I’ve successfully based my e-mail contact form on the kirupa tutorial.

What I wanted to do is create some conditions that where the fields weren’t filled out an error massage was returned.

In other words when go is pushed the follwing code is invoked:

on (release) {form.loadVariables(“email.php”, “POST”);
}

It then loads a movie in the next frame in a clip holder which says thanks, but it does this irrespective of whether or not the form is complete which is silly.

Where would I begin with the PHP or is there conditions that can set within flash. I guess logically it would look like:

on (release) (if textfields are full) {form.loadVariables(“email.php”, “POST”);
}

loadMovieNum(“thanks.swf”,this.txthld);
} else {
this.txthld.loadMovie(“error.swf”);
}

Any direction much obliged!

Thanks all!