Re: isset
| From: | Kevin Stone | Date: | Tue, 09 Jul 2002 22:37:27 +0000 |
| Subject: | Re: isset | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106604@lists.php.net to get a copy of this message | ||
<form method="post">
<input type="submit" name="submit">
</form>
if (isset($_POST['submit'])){}
// or //
if (isset($HTTP_POST_VARS['submit']))
If register globals is ON you can access the variable directly..
if (isset($submit)) {}
Otherwise you can extract the post array before testing the variable..
extract($_POST);
if (isset($submit)) {}
Hope this gets you started. Read up on the manual. http://www.php.net. :)
-Kevin
----- Original Message -----
From: "Preston Wade" <Preston_Wade@hilton.com>
To: <php-general@lists.php.net>
Sent: Tuesday, July 09, 2002 4:20 PM
Subject: [PHP] isset
> Hello All,
>
> I am trying to use the isset function to test if the page has been
> submitted, but it seems as though it is not working. I am wondering is
> there a configuration option that is messing with the functionality of
> isset.
>
> Any help would be appreciated.
>
> Thanks,
> Preston Wade
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>