# PHP mail form checking valid email?

**URL:** <https://forum.kirupa.com/t/php-mail-form-checking-valid-email/178384>\
**Category:** flash\
**Created:** [February 10, 2006, 2:07am UTC](https://forum.kirupa.com/t/php-mail-form-checking-valid-email/178384 "2006-02-10T02:07:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inept](https://avatars.discourse-cdn.com/v4/letter/i/e274bd/32.png) [@Inept](https://forum.kirupa.com/u/Inept)\
**Post date:** [February 10, 2006, 2:07am UTC](https://forum.kirupa.com/t/php-mail-form-checking-valid-email/178384/1 "2006-02-10T02:07:44Z")

</div>

Hello I have a working flash php mailing form but the only problem is that I put some code in there to check if the email is valid before it sends it off but it doesn’t seem to work. I did a test by just putting in a as the email and that worked, sent off the email without giving an error.

```auto

        mailReceiver.onLoad = function() {
            if (this.response == "invalid") {
                mainTL.gotoAndStop(1);
                alert_txt.text = "Please check email address - does not appear valid."
            } else if (this.response == "passed") {
                mainTL.gotoAndStop(4);
            }
        }

```

Is is possible to check if its valid before it sends off or is there another method for checking valid email addresses. I used that code from [thegoldenmean.com](http://thegoldenmean.com) website.

Cheers,  
Inept
