Re: getting rid of form variable definition
| From: | Robert V. Zwink | Date: | Mon, 03 Jul 2000 17:42:53 +0000 |
| Subject: | Re: getting rid of form variable definition | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4539@lists.php.net to get a copy of this message | ||
I beleive this will always evalutate true. Try is isset() function instead:
if (isset($reauthenticate)) {
authenticate();
}
----- Original Message -----
From: "Danny Rice" <dwrice@indiana.edu>
To: <php-general@lists.php.net>
Sent: Monday, July 03, 2000 1:44 PM
Subject: [PHP] getting rid of form variable definition
>
> What I am trying to do is send a varaiable, say "reauthenticate", from
> a form to change the username and password. So I'm trying something
> like
>
> if ($reauthenticate) {
> authenticate();
> }
>
> The authenticate function exits and the script is recalled, but the
> variable $reauthenticate is still set so I can't get past this point.
> I guess the browser is sending back this variable each time. So how
> do you clear this variable?
>
> -Danny
>
> --
> 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
>