Re: Reading Form Buttons
| From: | Dan J. Rychlik | Date: | Thu, 25 Sep 2003 19:39:29 +0000 |
| Subject: | Re: Reading Form Buttons | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163982@lists.php.net to get a copy of this message | ||
Oh, so its the same as reading post data from form fields. Cool. That
makes it easy.
Thank you
----- Original Message -----
From: "Jeff McKeon" <jmckeon@telaurus.com>
To: "Dan J. Rychlik" <drychlik@tcsconsult.com>; <php-general@lists.php.net>
Sent: Thursday, September 25, 2003 2:38 PM
Subject: RE: [PHP] Reading Form Buttons
> If(isset($_post['update'])) {
> do something;
> }
>
> If(isset($_POST['delete'])) {
> do something;
> }
>
> Jeff
>
> > -----Original Message-----
> > From: Dan J. Rychlik [mailto:drychlik@tcsconsult.com]
> > Sent: Thursday, September 25, 2003 3:35 PM
> > To: php-general@lists.php.net
> > Subject: [PHP] Reading Form Buttons
> >
> >
> > Hello,
> >
> > I cant figure this one out. In one form I have two button
> > that needs to trigger their respective functions.
> > <input type= "submit" name ="Update" value ="Update
> > Record">
> > <input type= "submit" name ="Delete" value ="Delete
> > Record">
> >
> > In php, how would I read the values or the names of the
> > buttons pressed?
> >
> > -Dan
> >
>