Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/02/2009, 10:21
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: Evitar error de variable sin valor

mmmm pues así tal cual lo pusiste:
Código php:
Ver original
  1. if( !empty($_POST["opc_orden"])) {
  2.       $opc_orden = $_POST["opc_orden"];
  3. } else {
  4.       $opc_orden = 'Desc';
  5. }

Saludos