# Flash/php variable form validation help

**URL:** <https://forum.kirupa.com/t/flash-php-variable-form-validation-help/254087>\
**Category:** flash\
**Created:** [March 7, 2008, 9:33pm UTC](https://forum.kirupa.com/t/flash-php-variable-form-validation-help/254087 "2008-03-07T21:33:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![almaline03](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@almaline03](https://forum.kirupa.com/u/almaline03)\
**Post date:** [March 7, 2008, 9:33pm UTC](https://forum.kirupa.com/t/flash-php-variable-form-validation-help/254087/1 "2008-03-07T21:33:52Z")

</div>

I have no idea how to validate certain fields on m flash form. Here is some code. Im not sure what will help.

on the Submit button:

```auto

on (release) {
	// send variables in form movieclip (the textfields)
	// to email PHP page which will send the mail
	form.loadVariables("contact_form_samples.php", "POST");

}

```

on my form\_mc:

```auto

onClipEvent(data){
	// show welcome screen
	_parent.thanks();
}

```

I have 3 frames labeled- (frame1)=“contact\_form”; (frame 2) = “thanks”; (frame3)=“error”

I have 3 text fields I need validated. Their variable names are “name”, “email”, & “company”.

Any ideas?
