Re: Multiple Form Submit Buttons

From: Date: Fri, 11 Oct 2002 16:46:24 +0000
Subject: Re: Multiple Form Submit Buttons
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119667@lists.php.net to get a copy of this message
Suppose that form's buttons are <input type= submit name="submit" value="Edit"> <input type= submit name="submit" value="Delete"> <input type= submit name="submit" value="New"> <? switch ($submit){ case "Edit": .......; break; case "Delete": ...; break; case "New": ...; break; default: ...; } ?> That's all "Jonathan Rosenberg" <jr40@earthlink.net> wrote in message news:NDBBLKBKIKFIPIFMDDNHEEKDGNAA.jr40@earthlink.net... > I have been digging through the documentation for a while, but I can't find > the answer to this ... > > If I have a form with multiple submit buttons, how can I tell in PHP which > button was clicked? > > -- > JR > >

« previous php.general (#119667) next »