# AS and PHP / Print command not working

**URL:** <https://forum.kirupa.com/t/as-and-php-print-command-not-working/241188>\
**Category:** flash\
**Created:** [October 10, 2007, 7:08pm UTC](https://forum.kirupa.com/t/as-and-php-print-command-not-working/241188 "2007-10-10T19:08:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webpsiho](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@webpsiho](https://forum.kirupa.com/u/webpsiho)\
**Post date:** [October 10, 2007, 7:08pm UTC](https://forum.kirupa.com/t/as-and-php-print-command-not-working/241188/1 "2007-10-10T19:08:32Z")

</div>

Hi all,

my AS script is:

```auto

on (release) {
        if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
        EmailStatus = "Please enter a valid E-mail address";
    } 
    
    else if (!FirstName.indexOf("your") == 1) {
        EmailStatus = "Please Enter your name before Sending";
    } 

    else if (!ToComments.indexOf("comments") == 1) {
        EmailStatus = "Please enter some text in you message";
    } 
    
    else {
        loadVariablesNum ("send.php", 0, "POST");
        EmailStatus = "Sending... one Moment .. ";
            
}
}

```

and php

```php

...
...

Print "_root.Mail.EmailStatus=Complete - Your mail has been sent";

```

The data are retrived from FLah and send on email OK, … but is not sending back print command. How do fix it? 😕

Note: EmailStatus is an Input field as default jus tfor info. is working on filling form (eg: Please enter a valid E-mail address). but not getting the print from php

Working on Flash8 but fla is MX one
