Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/02/2010, 13:35
dohko7
(Desactivado)
 
Fecha de Ingreso: febrero-2010
Mensajes: 96
Antigüedad: 14 años, 2 meses
Puntos: 0
Respuesta: ocultar un campo si no posee valor, ajax php

Cita:
Iniciado por GatorV Ver Mensaje
Pues es simple:
Código PHP:
Ver original
  1. echo "cosas";
  2. if ($algo > 0 ) {
  3.       echo "otras cosas";
  4. }
  5. echo "mas cosas";

Saludos.
eehh?? de nuevo gracias!!
PERO EN MI CASO QUISAS ES RECOMENDABLE LEER MI PROBLEMA PARA PODER DARME RESULTADOS!! COMO APLICO ESO MISMO Q DICES EN EL SIGUIENTE CODIGO??

Código PHP:
Ver original
  1. 1.
  2.       if ($anios_debe > 0 ){
  3.    2.
  4.                                       // Muestreo de tabla dentro de la busqueda.
  5.    3.
  6.               echo "<form>";
  7.    4.
  8.               echo "<table border='1' align='center' align='center'>
  9.   5.
  10.              <tr><th align='center'>Impuesto ".$a&#241;o."</th>
  11.   6.
  12.               <th> ". ($unidad*$factor) . "</th>
  13.    7.
  14.               [B][U]<tr><th align='center'>Multa ".$año."</th>
  15.    8.
  16.               <th> ". $multa . "</th>[/U][/B]
  17.    9.
  18.               <tr><th align='center'>Descuento ".$año."</th>
  19.   10.
  20.               <th> ". $descuento . "</th>
  21.   11.
  22.               <tr><th align='center'>Pago Impuesto A&ntilde;os Anteriores</th>
  23.   12.
  24.               <th> ". $monto_aa . "</th>
  25.   13.
  26.               <tr><th align='center'>Multa A&ntilde;os Anteriores</th>
  27.   14.
  28.               <th> ". $multap . "</th>
  29.   15.
  30.               <tr><th align='right'>TOTAL</th><th> ". $total1 . "</th>
  31.   16.
  32.        
  33.   17.
  34.               </tr>";
  35.  18.
  36.          
  37.  19.
  38.          echo "</table>";
  39.  20.
  40.          echo "</form>";
  41.  21.
  42.          }

ESO MISMO PERO OCULTAR EL CAMPO MULTA SI ESTA EN 0 PERFECTO LO ENTIENDO!!

PERO COMO LO METO Y LO MUESTRO EN EL MOYEJERO ESE Q ESTA AYI??

GRACIAS DE NUEVO POR EL INTENTO DE AYUDA!! DE VERDAD AGRADECIDO POR SU INTERES