Of corse:
The code should look like this :
<?
if ( $HTTP_GET_VARS['a'] == 1 ) {
echo "True.";
} else {
echo "False."
}
?>
Now if you type the http://localhost/show.php?a=1 you'll have 'true'
otherwise 'false'
--
-------------------------------------------------
Cristian MARIN - Developer
InterAKT Online (www.interakt.ro)
Tel: +4021 312.53.12
Tel/Fax: +4021 312.51.91
[EMAIL PROTECTED]
"Joe Phyism" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The source of show.php:
> <?
> if ( $a == 1 ) {
> echo "True.";
> } else {
> echo "False."
> }
> ?>
>
> However, no matter what I type in URL of browser, like
> http://localhost/show.php?a=1 or http://localhost/show.php, the result is
> the same - "False.".
> Can anyone help me? Is it the problem of my setting in Apache?
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php