1. loadvars vs geturl
Send ()
There are many restrictions on geturl, and loadvars makes up for this.
Flash timeline script:
System. usecodepage = true;
Signbtn. onrelease = function ()
{
VaR formvars: loadvars = new loadvars ();
Formvars. Username = signform. username. text;
Formvars. userpass = signform. userpass. text;
Formvars. usermail = signform. usermail. text;
Formvars. Send (http://www.chinawecan.com/FlashForm.php, "_ blank", "get ");
}
2. sendandload ()
Flash:
Frame 1st:
System. usecodepage = true;
VaR yname: String = "";
VaR ypass: String = "";
VaR Ymail: String = "";
Signbtn. onrelease = function ()
{
VaR formvars: loadvars = new loadvars ();
Formvars. Username = signform. username. text;
Formvars. userpass = signform. userpass. text;
Formvars. usermail = signform. usermail. text;
VaR resultvars: loadvars = new loadvars ();
Resultvars. onload = function (SUCCESS)
{
If (SUCCESS)
{
Play ();
Yname = This. yourname;
Ypass = This. yourpass;
Ymail = This. yourmail;
} Else {
Trace ("failed ");
}
}
Formvars. sendandload ("http: // localhost/PHP/signin. php", resultvars, "get ");
}
Stop ();
Frame 2nd:
Stop ();
Yourname. Text = yname;
Yourpass. Text = ypass;
Yourmail. Text = Ymail;
PHP:
<? PHP
Echo "yourname =". $ _ Get ["username"]. "&";
Echo "yourpass =". $ _ Get ["userpass"]. "&";
Echo "yourmail =". $ _ Get ["usermail"];
?>