Re: comparison operator
| From: | Richard Lynch | Date: | Wed, 09 Mar 2005 23:14:41 +0000 |
| Subject: | Re: comparison operator | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210396@lists.php.net to get a copy of this message | ||
> i ran into this problem and i dont remember how i worked around it.
http://php.net/isset
> if($_REQUEST['value'] == 1)
> {
> // do something
> }
> else if($_REQUEST['value'] == 0)
> {
> // do something
> }
>
> even if i don't do ?value=0 its always prints something.. i want to make
> an
> on/off value based on the value of the url.. 1 for yes, 0 for no. but i
> only
> want false IF its declared in the url..
>
> i dont want to use a number other than 0, workaround?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Like Music?
http://l-i-e.com/artists.htm