Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send Function not working

Status
Not open for further replies.

egmweb

Programmer
Mar 19, 2004
147
EU
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
 
Hello Billwatson, thanks you for your reply

But it doesnt works with the line you've wrote.

When I see the movieclip in the internet browser, it doesn't open the php file...

You can see the movieclip on login form at
Thanks you very much.

Eduard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top