I made two fields, user and pass. when you click login it sends these two fields to a php file.

here is the php file contents:
PHP Code:
<?php
$username 
$_POST[user];
$password $_POST[pass];
$con mysql_connect("SERVER_GOES_HERE",$username,$password);
if (!
$con)
  {
  print 
"&reply=didn't connect"
  
}
if(
$con)
 {
print 
"&reply=win"
}
mysql_close($con)
?>

As you can see i've replaced the server with SERVER_GOES_HERE.

anyway every time i try it fails straight away saying that the php file didn't respond. what?

Flash actionscript:

Code:
sender = new LoadVars();
sender.user = user;
sender.pass = pass;
sender.sendAndLoad("login/login.php",sender,"POST");
sender.onLoad = function(epicwin){
if(epicwin){
if(sender.reply=="win"){
_root.login.gotoAndStop("account");
}else{
error = sender.reply;
gotoAndStop("fail");
}
}else{
error = "There was no response from the server!";
gotoAndStop("fail");
}
}
}
Somebody help!