Date: 10/24/02
- Next message: Maxim Maletsky: "Re: [PHP] Var question"
- Previous message: Adam Voigt: "RE: [PHP] sessions"
- In reply to: Clint Tredway: "[PHP] Var question"
- Next in thread: Clint Tredway: "RE: [PHP] Var question"
- Reply: Clint Tredway: "RE: [PHP] Var question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>>
To: <php-general <email protected>>
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
- Next message: Maxim Maletsky: "Re: [PHP] Var question"
- Previous message: Adam Voigt: "RE: [PHP] sessions"
- In reply to: Clint Tredway: "[PHP] Var question"
- Next in thread: Clint Tredway: "RE: [PHP] Var question"
- Reply: Clint Tredway: "RE: [PHP] Var question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

