Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/05/2010, 13:59
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Gestionar con dos botones

Simplemente llama a los dos botones igual:
Código HTML:
Ver original
  1. <input type="submit" name="accion" value="Borrar" />
  2. <input type="submit" name="accion" value="Modificar" />

Luego desde PHP checas:
Código PHP:
Ver original
  1. if ($_POST['accion'] == 'Borrar') {
  2.        // borrar
  3. } elseif ($_POST['accion'] == 'Modificar') {
  4.        // modificas
  5. } else {
  6.        die("no hay accion");
  7. }

Saludos.