Hello Guys.
I'm new on this. Please help me.
I have a problem trying to send 2 variables from flash 8 to a php script.
The php Script tells me the following: "Undefined"
for both variables
here is my code, I don't know whats wrong.
///////////////////////////
var sendlformvars:LoadVars = new LoadVars();
var getlformvars:LoadVars = new LoadVars();
function sendForm(){
sendlformvars.usr = lform.usr.text;
sendlformvars.pwd = lform.pwd.text;
sendlformvars.send(" "_self", "POST");
}
this.lform.bsend.onRelease = function(){
if (lform.usr.text == "" || lform.pwd.text == ""){
gotoAndStop("error");
}else{
gotoAndStop("correct");
sendForm();
}
}
///////////////////////////
Here is the content of my php Script
///////////////////////////
<?
$usr = $_POST["usr"];
$pwd = $_POST["pwd"];
echo 'Username: '.$usr;
echo 'Password: '.$pwd;
?>
///////////////////////////
Thanks you.
Eduard
I'm new on this. Please help me.
I have a problem trying to send 2 variables from flash 8 to a php script.
The php Script tells me the following: "Undefined"
for both variables
here is my code, I don't know whats wrong.
///////////////////////////
var sendlformvars:LoadVars = new LoadVars();
var getlformvars:LoadVars = new LoadVars();
function sendForm(){
sendlformvars.usr = lform.usr.text;
sendlformvars.pwd = lform.pwd.text;
sendlformvars.send(" "_self", "POST");
}
this.lform.bsend.onRelease = function(){
if (lform.usr.text == "" || lform.pwd.text == ""){
gotoAndStop("error");
}else{
gotoAndStop("correct");
sendForm();
}
}
///////////////////////////
Here is the content of my php Script
///////////////////////////
<?
$usr = $_POST["usr"];
$pwd = $_POST["pwd"];
echo 'Username: '.$usr;
echo 'Password: '.$pwd;
?>
///////////////////////////
Thanks you.
Eduard