# \[MX\] form check AS

**URL:** <https://forum.kirupa.com/t/mx-form-check-as/122634>\
**Category:** Uncategorized\
**Created:** [September 15, 2004, 4:02pm UTC](https://forum.kirupa.com/t/mx-form-check-as/122634 "2004-09-15T16:02:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryall](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Ryall](https://forum.kirupa.com/u/Ryall)\
**Post date:** [September 15, 2004, 4:02pm UTC](https://forum.kirupa.com/t/mx-form-check-as/122634/1 "2004-09-15T16:02:01Z")

</div>

ok I dont get it… I have a simple contact form, and a basic if/else to check if certain fields have been left blank… if they have frame two displays an error message, if filled in then it posts the vars and goes to frame three thanking the user. For some reason this code ALWAYS returns false:

```auto
 on (release) {
	if (name eq "" or address eq "" or city eq "" or state eq "" or zip eq "" or phone eq "" or email eq "" or projects eq "") {
		_root.gotoAndStop(2);
	} else {
		_root.gotoAndStop(3);
		loadVariablesNum("contact.php", 0, "POST");
		
	}
}

```

And this ALWAYS returns true:

```auto
 on (release) {
	if (name == "" or address == "" or city == "" or state == "" or zip == "" or phone == "" or email == "" or projects == "") {
		_root.gotoAndStop(2);
	} else {
		_root.gotoAndStop(3);
		loadVariablesNum("contact.php", 0, "POST");
		
	}
}

```

WTF is going on with this?

peace
