Quick question... I'm using this code to communicate with my flash application:
<?php
// Only run this script if the sendRequest is from our flash application
if ($_POST['sendRequest'] == "parse") {
// Print the var to flash
print "var1=The user's name is Harry";
}
?>
Now this works fine but as soon as I add a variable:
<?php
// Only run this script if the sendRequest is from our flash application
if ($_POST['sendRequest'] == "parse") {
$uname = "Name"
// Print the var to flash
print "var1=The user's name is Harry";
}
?>
I get an error stating:
Parse error: syntax error, unexpected T_PRINT in /home/a4935911/public_html/usersOnline.php on line 7
Where line 7 is my print statement. Why is this happening??? Please can someone help. PHP is driving me crazy...