RE: [PHP] Var question
| From: | Clint Tredway | Date: | Thu, 24 Oct 2002 13:53:03 +0000 |
| Subject: | RE: [PHP] Var question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121264@lists.php.net to get a copy of this message | ||
Thanks guys..
I am moving away from ColdFusion to PHP and so I still forget about the
isset() function.
-----Original Message-----
From: 1LT John W. Holmes [mailto:holmes072000@charter.net]
Sent: Thursday, October 24, 2002 8:53 AM
To: ctredway@fishermenstudios.com; php-general@lists.php.net
Subject: Re: [PHP] Var question
You can just check for
if(isset($_POST['go']))
You don't really care what the value is since it's just a button.
---John Holmes...
----- Original Message -----
From: "Clint Tredway" <ctredway@fishermenstudios.com>
To: <php-general@lists.php.net>
Sent: Thursday, October 24, 2002 9:33 AM
Subject: [PHP] Var question
> I am building a form that posts to itself.
>
> I have the following to detect the submit button being clicked:
> If($_POST["go"] == "add link")
>
> I am getting a warning that says 'go' is undefined. How do I define
> this?
>
> Thanks,
> Clint
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php