# AS3 Web Forms and PHP

**URL:** <https://forum.kirupa.com/t/as3-web-forms-and-php/253213>\
**Category:** flash\
**Created:** [February 28, 2008, 4:58am UTC](https://forum.kirupa.com/t/as3-web-forms-and-php/253213 "2008-02-28T04:58:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnrobertlemon](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@johnrobertlemon](https://forum.kirupa.com/u/johnrobertlemon)\
**Post date:** [February 28, 2008, 4:58am UTC](https://forum.kirupa.com/t/as3-web-forms-and-php/253213/1 "2008-02-28T04:58:40Z")

</div>

I just can’t believe this. I made a simple Web form connected to a PHP file, and I made the return as I always did in AS2 like this:  
if ($theStatus==“submission”) {  
if (!(mail($to, $subject, $theMessage, $fromHeader))) {  
echo “&returnMessage=0&”;  
}else{  
echo “&returnMessage=1&”;  
}  
}  
No errors. And the message would send. But I got no return back to Flash, which just sat there, like duuuuh.

Come to find out, now you don’t put in the ampersands. The reason I got no feedback is because of the ampersands. I changed the code to echo “returnMessage=1”; and it works fine.

Who thinks this stuff up?
