switch works on localhost, not webhost...
Hello all. I have problem with switch statement in version PHP 4.2.2 on linux
server. My error page is not coming (which used switch) instead i am getting the
code of the entire page ....which is working perfectly on windows 2000.
pls help
thanx in advance
ckb
pls check part of my code:
<?php // these code used to diplay message if there is any Unathiora
include("connection.php");
// $ec=$GET['ec'];
//switch($ec)
if(isset($GET['ec']) ) {
switch($_GET['ec'])
{
case 0:
$message="<font color='black'><b>
Your user name or password is incorrect!
<a href=index.php>Please try again.</a></b></font>";
break;
case 1:
$message="<font color='darkgreen'><b>
There was an authentication error.
Please<a href=index.php>Log in </a>correctly.</b>";
}
}
?>