# Problems with contact page

**URL:** <https://forum.kirupa.com/t/problems-with-contact-page/218253>\
**Category:** flash\
**Created:** [March 6, 2007, 5:05am UTC](https://forum.kirupa.com/t/problems-with-contact-page/218253 "2007-03-06T05:05:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sogj](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sogj/32/3189_2.png) [@sogj](https://forum.kirupa.com/u/sogj)\
**Post date:** [March 6, 2007, 5:05am UTC](https://forum.kirupa.com/t/problems-with-contact-page/218253/1 "2007-03-06T05:05:20Z")

</div>

My contact page ([www.amberbutler.com](http://www.amberbutler.com)) consists of a movie clip called “form” in which there are four input text boxes, “name\_txt”, “ad\_txt”, “email\_txt”, and “comments\_txt”.

In the frame that holds “form,” I have a submit button. You can test it yourself. Go to the contact page, fill out all the fields, and hit “submit.” It will submit. HOWEVER, if you first forget to fill out one field, it will warn you, but then it won’t submit after that. It’s like you have to “reset” the contact page in order to get it to submit.

My submit button code looks like this:

```auto
on (release) {
	error_txt.text = "";
	if ((form.name_txt.text != "") && (form.email_txt.text != "") && (form.comments_txt != "")) {
	    form.loadVariables("gdform.php", "POST");
	}
	else {
		error_txt.text = "Please fill out all fields marked with an asterisk (*).";
    }
}

```

error\_txt is a dynamic text box below the form and above the buttons (in the frame with the buttons and “form”.

From what I can tell, if you have not filled out either name, email, or comments, then error\_txt should display the message. But then, when you click on it again, error\_txt should be reset to blank (which it is not), and it should run the “if” test again. But it’s like it gets stuck. Once you click the button it doesn’t work anymore or something.

Does anyone have any ideas? I’m a ::smidgen:: desperate, I have to have people able to contact me on this form. Hm, that would make a good smiley. Anyone got a ::smidgen desperate:: smiley? It would probably be a cross between Ⓜ and :stare:.

Thanks!  
:ear: sogj
