LoadVars/PHP Issue

Heya guys,

I was wondering if someone could check this code for me to see if it’s correct.

When I try to echo the posted variables in PHP nothing shows up besides the echo.


sendBtn.onRelease = function(){
	myVars = new LoadVars();
	myVars.userName = 333;
	myVars.emailAddress = "test";
	myVars.sendAndLoad("http://localhost/php/process.php", myVars,"POST");
	myVars.onLoad = trace(myVars);
}


<?php
/*if(isset($_POST['userName']))
{
echo 'submit was pressed';
}*/
$userName = $_POST['userName'];
$emailAddress = $_POST['emailAddress'];


echo $userName;
echo $emailAddress;

echo"<br/><br/>";



echo "&feedback=done";
?>

The &feedback=done is coming back into flash but like I said, it’s the echo’d variables I’m having trouble with :frowning:

Thanks,
Steve