Simple flash AS3 contact form with field validation

This is an example of how AS3 aint all that bad.
I simply converted an already existing AS2 contact form to AS3.
Looking at the fla you will see that not much has changed.
The only major difference is how you setup sending your vars to the php script.
An example can be seen here.

Some server configurations require the email address used to send the email in the form is that of the same domain name the script is on.
so for example you might have it set up likehttp://www.somedomain.com and in the script you have random@email.com. some servers don’t like this.
If this is what your doing then try adding ini_set (“sendmail_from”,”your@email.com”);
Obviously changing your@ for your own email.

If this is not the case can you send me a direct link to the php script on the server. DO NOT paste the link into the post. Email it to me via my email form.

Mate – a big big thanks to you!! I’m new to AS3 and I needed to see some working code so I could debug a simple form I’m working on. (Well, it was supposed to be simple…) Cheers for the headsup – from a fellow Scot in Australia!

I did a trace(evt.target.data)
and found the following
%3Cbr%20%2F%3E%0A%3Cb%3ENotice%3C%2Fb%3E%3A%20%20Undefined%20variable%3A%20msgPost%20in%20%3Cb%3EC%3A%5Cwamp%5Cwww%5Ccontact%2Ephp%3C%2Fb%3E%20on%20line%20%3Cb%3E18%3C%2Fb%3E%3Cbr%20%2F%3E%0Aretval=1

hi! thanks for this great form! it’s very simple! i also found a solution reading comments here:
i just need one (i hope simple) thing: when i roll over “send” and “reset” button i can’t see hand cursor. i tried
sendBtn.buttonMode = true;
and
sendBtn.buttonMode = true; (both to send and reset)
but i always see default cursor.
can you help me showing hand cursor? thanks in advance

Hi Paul! thanks for your link! It’s been REALLY helpful!!!
I’m having some trouble though… Even though I receive the emails (which is AMAZING!) the error message (and no “message sent” message) still shows…. I’m barely learning flash, not to mention php… but it seems as though the php isn’t “echoing”.
Any insight of why this would be happening?

I’m not sure if you can help me with this but I’ve googled all forums and tutorials and even the author of the original script and to no avail. I have customized this AS3 form that is processed with php. I need to get the phone number to send. As it stands only the name and email are being received in the email. The title phone is being posted but the value is empty. The following code is what I am dealing with. If you want the actual files just send me an email and I will forward them to you. Thanks in advance for any assistance you may be able to provide.