# Email submit

**URL:** <https://forum.kirupa.com/t/email-submit/233885>\
**Category:** Uncategorized\
**Created:** [July 27, 2007, 6:40pm UTC](https://forum.kirupa.com/t/email-submit/233885 "2007-07-27T18:40:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_u\_r](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@m\_u\_r](https://forum.kirupa.com/u/m_u_r)\
**Post date:** [July 27, 2007, 6:40pm UTC](https://forum.kirupa.com/t/email-submit/233885/1 "2007-07-27T18:40:20Z")

</div>

I have an email sign-up form that works fine. The only trouble is it immediately goes back to normal after you submit an email so you wonder if it really worked. It there a way to make a thank you message?

This is the code I’m using:

```auto
stop();
_root.fields.emailInput.text = "email address";
_root.fields.emailInput.onSetFocus = function() {
    if (this.text == "email address") {
        this.text = "";
    }
};
_root.fields.emailInput.onKillFocus = function() {
    if (this.text == "") {
        this.text = "email address";
    }
};
fscommand ("allowscale",false);
stop();

```

and on the submit button:

```auto
on (release) {
	_root.fields.loadVariables("email.php", "POST");
	_root.fields.emailInput.text = "email address";
	_root.fields.emailInput.hscroll = 0;
	_root.fields.emailInput.onSetFocus = function() {
		if (this.text == "email address") {
			this.text = "";
		}
	};
}

```
