Is anybody a PHP whizz that can help me with a Browser issue?
I want to disconnent a connection to a database using the "exit" command
when a user inputs a username that is not unique. I also wish to display an
error message, asking them to try again This works fine in IE and Netscape
6, but does not work in Netscape 4 for some reason. As soon as the Browser
hits the exit tag it refuses to display the error message, or anything else.
Please help
$sql = "INSERT INTO user (uname,passwd) VALUES ('$uname','$passwd');
$result = mysql_query($sql);
//check for unique username
if(!$result)
{
echo "<b>The Username ' ";
echo $uname;
echo "' you gave allready exists. Please go back and try again";
exit;
}
Stefan