Hello Mina San:
I'm bulding an small site based on php and I have a page Login.php, which in turn has an iframe coming from loginForm.php....
I've managed to get the login info, and check whether or not the user is registered, with something like this:
Code:
<?php
include("connect.php");
$sql = "SELECT * FROM users WHERE userName = '" . $user ."' AND
password = '" . $password . "'";
$result = mysql_query($sql, $db);
if($myRow = mysql_fetch_array($result))
{
session_register("$user");
}
else
{
echo "User not registered";
}
?>
Where connect.php is the database connection.......... the thing is that once the user has been validated, I'd like to load welcome.php in the whole page, not just the iframe where the validation has been done.
Is there a way to do that? I tried something like :
Code:
if($myRow = mysql_fetch_array($result))
{
session_register("$user");
echo "<script language=JavaScript1.1>
parent.load(/registro.php); </script>";
}
But the parent.load won't work

any ideas?
thanks