I am building a login page for my website. Right now it is very simple, but it only seems to work in Firefox and I have no idea why. Here is where it seems to be breaking. The code sends the user's login information to login.php which will eventually check it with the database and then sends the user on to a welcome page. The user gets to the welcome page, but the information never seems to be sent to login.php when the user is using Chrome or IE.
public function log():void
{
u=user.text.toLowerCase();
p=pass.text.toLowerCase();
var urlVariables:URLVariables = new URLVariables;
urlVariables.userName = u;
urlVariables.password = p;
var urlRequest:URLRequest = new URLRequest("mysite/login.php");
urlRequest.data = urlVariables;
sendToURL(urlRequest);
navigateToURL(new URLRequest("mysite/welcome.html"), "_self");
}
Any ideas?