Hi!
I have a form where users have to sign in and then I test if the values entered are correct. If they are I wan´t them to be redirected to a personal membersite. It´s the redirection I have problems with. Thist is my code:
<?
if($REQUEST_METHOD == "POST")
{
mysql_connect ("localhost","httpd","");
$sql="select name,password from users where namn='$usernamn'";
$resultat=mysql_db_query("recepies",$sql);
while($rad=mysql_fetch_array($resultat))
{
$test=$rad["name"];
$test2=$rad["password"];
}
if(empty($username)){
echo "You must fill in your username.";
} elseif(empty($passwd)){
echo "You must fill in your password.";
} elseif($test!=$username){
echo "That´s wrong username.";
} elseif ($test2!=$passwd){
echo "That´s wrong password.";
} else {
?????
}
}
mysql_close;
?>
Where the "?????" is they should be redirected to another site. How?
Jessica