displaying connection error.
Using "echo $error" only displays the error output in a blank page, so I tried sending the $error variable to another page which looks exactly like the login page using header,
$error="Please check your connection details again"; header("location:log.php?error=".$error);
It works just fine but it doesn't look good,moreover,the new url looks bad and I'm sure there's another way to do it.
Thanks in advance