Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/09/2012, 18:38
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: Como diferenciar que proceso seguir con enlace.

Necesitas agregar otra variable para saber la "acción" a ejecutar:

Código PHP:
Ver original
  1. <?php
  2. // Al crear el enlace
  3. ?>
  4. <a href="clientes.php?id=<?php echo $reg['id']; ?>&accion=editar">Editar</a>
  5.  
  6. <?php
  7. // Donde vas a procesar:
  8. if(isset($_GET['accion']) && $_GET['accion'] == editar) {
  9.     // Aquí editas y/o muestras formulario para editar
  10. }
__________________
- León, Guanajuato
- GV-Foto