Re: url variable defined?
| From: | Data Driven Design | Date: | Tue, 08 Aug 2000 14:24:16 +0000 |
| Subject: | Re: url variable defined? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10671@lists.php.net to get a copy of this message | ||
Use the isset() function
http://www.php.net/manual/function.isset.php
Data Driven Design
P.O. Box 1084
Holly Hill, FL 32125-1084
Phone : (904) - 226-8979
URL : http://www.datadrivendesign.com
URL : http://www.rossidesigns.net
----- Original Message -----
From: <venome@gmx.net>
To: <php-general@lists.php.net>
Sent: Tuesday, August 08, 2000 10:25 AM
Subject: [PHP] url variable defined?
> how can i tell if a variable was defined in the url, like this:
>
> http://blah.com?var=value
>
> or not? if not, i want it to have a default value, like this
>
> <? if ($var not defined) {
> $var = 1
> } ?>
>
> --
> Sent through GMX FreeMail - http://www.gmx.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>