Passing variables to PHP, just not working, why?

here is my simple actionscript 3 code:
import flash.display.Sprite;
import flash.net.navigateToURL;
import flash.net.URLRequest;
import flash.net.URLVariables;

function sendForm(event:MouseEvent):void {
var url:String=“formSend.php”;
var request:URLRequest=new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.usrName=name_txt.text;
variables.usrEmail=email_txt.text;
variables.usrMsg=msg_txt.text;
request.data=variables;
navigateToURL(request);

	}

submit_btn.addEventListener(MouseEvent.CLICK, sendForm);

and my PHP is:

<?php
$name = $_POST[‘usrName’];
$email = $_POST[‘usrEmail’];
$message = $_POST[‘usrMsg’];
echo $name, $email, $message
?>

it seems so ultra simple I can’t imagine why I get nothing back from my echo statement, any help is greatly appreciated

Yeah, see if that helps.

I know you are missing a semi colon missing from the echo there…and aren’t you supposed to seperate variables via a period if you want to join variables? Anyway, are you getting an error message or … what’s going on here lol :).

Ignore me if I’m no help at all here ;). Trying to explore new areas of the forum.

Looks like you’re trying to setup a contact form.

Here is an example.

Hope it helps.

If you use charles web debugging proxy or similar, you can monitor whether the data is actually being transmitted or not, which always helps pinpoint exactly where the issue is.

I don’t like your PHP, and I’m not 100% sure that it will work.

Can we change that first?

Try:

echo $name . " " . $email . " " . $message;

See if that gives you any different results.

You want to do this:
<?php
echo “name=”.urlencode($name).“&email=”.urlencode($email).“&message=”.urlencode($message);
?>