Re: Problem with the beginning variable
| From: | Hugh Bothwell | Date: | Wed, 03 Apr 2002 13:44:45 +0000 |
| Subject: | Re: Problem with the beginning variable | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18162@lists.php.net to get a copy of this message | ||
"Ron Allen" <allenr@fwd.areur.army.mil> wrote in message
news:20020403113609.17855.qmail@pb1.pair.com...
> I have a problem with the inital load of my page
>
> When it loads it says that the variable is not defined. When I click on
> search after that it works fine.
>
> How do I get PHP to recognize a variable as a certain value without making
> it a static value?
if (!isset($myvar))
$myvar = "this is my default value";