RE: [PHP] Reading Form Buttons

From: Date: Thu, 25 Sep 2003 19:38:21 +0000
Subject: RE: [PHP] Reading Form Buttons
Groups: php.general 
Request: Send a blank email to php-general+get-163981@lists.php.net to get a copy of this message
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 >

« previous php.general (#163981) next »