switch works on localhost(windows 2000) but not on Linux
Posted: Sun Aug 10, 2003 1:03 am
switch works on localhost, not webhost...
Hello all. I have problem with switch statement in version PHP 4.2.2 on linux
server. in my error page i am not getting the value of error code ec passed which is working perfectly on windows 2000.
That means echo $_GET['ec']; is empty ....
in the url i am getting the value of ec as 0...
like this
http://191.5.2.23/admin/ERROR.PHP?ec=0
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>";
}
}
?>
Hello all. I have problem with switch statement in version PHP 4.2.2 on linux
server. in my error page i am not getting the value of error code ec passed which is working perfectly on windows 2000.
That means echo $_GET['ec']; is empty ....
in the url i am getting the value of ec as 0...
like this
http://191.5.2.23/admin/ERROR.PHP?ec=0
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>";
}
}
?>