Re: passing variables
| From: | Adam Williams | Date: | Mon, 09 Dec 2002 17:03:11 +0000 |
| Subject: | Re: passing variables | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23956@lists.php.net to get a copy of this message | ||
www.php.net/isset
if !isset($var)
{
echo "var is not set to anything";
}
else
{
echo "var is set to $var";
}
On Mon, 9 Dec 2002, Edward Peloke wrote:
> Hello all,
>
> I have a login/register screen for my php/mysql db. When the page opens,
> the user sees the log in screen but I have a button and reloads the same
> page, hopefully with the register screen. I know I can simply check to see
> if a variable is set with
>
> if ($variable){} . This does not seem to work when I give an image a name
> and link it to the same page. The image is named register and it links back
> to the same page, so the page loads, I click on the register image , the
> page reloads but the variable is not set.
>
>
> Any ideas?
>
> Thanks,
> Eddie
>
>
>