If(isset($_post['update'])) { do something; } If(isset($_POST['delete'])) { do something; }
Jeff > -----Original Message----- > From: Dan J. Rychlik [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 25, 2003 3:35 PM > To: [EMAIL PROTECTED] > 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php