Disculpa, tenia dias sin conectarme por aqui
Código PHP:
<?
session_start();
mysql_connect("localhost","root","sa");
mysql_select_db("personas");
if(trim($_GET['usuario']) != "" && trim($_GET['passwd']) != "")
{
$usuario = $_GET['usuario'];
$passwd = $_GET['passwd'];
$sql = @mysql_query("SELECT usuario,passwd FROM usuarios WHERE usuario='$usuario'");
if($dato = @mysql_fetch_array($sql))
{
if($dato["passwd"] == $passwd)
{
$_SESSION["validado"]=1;
$_SESSION["usuario"]=$dato["usuario"];
$_SESSION["passwd"]=$dato["passwd"];
header("location:personas/administrar.php");
}
else
{
header("location:index.html");
}
}
else
{
header("location:index.html");
}
mysql_free_result($sql);
}
else
{
header("location:index.html");
}
?>
intenta asi y nos comentas