Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/05/2010, 02:37
Annoying
 
Fecha de Ingreso: diciembre-2008
Ubicación: Vigo, Spain
Mensajes: 141
Antigüedad: 15 años, 5 meses
Puntos: 12
Respuesta: Acción de formulario...

Podrias intentar esto:

Código PHP:
Ver original
  1. <?php
  2.  
  3. if (!$_POST['nombre_del_input']) {
  4. //si no hay nada en esa variable, mostrar el formulario
  5.  
  6. ?>
  7.  
  8. <!--formulario-->
  9. <form method="post" action="<?php echo $_SERVER['PHP_SELF']?>">
  10.     <table width="360" border="0" cellspacing="0" cellpadding="5">
  11.         Introduce algo: <input type="text" name="nombre_del_input">
  12.         <input type="submit" name="buscar">
  13.     </table>
  14. </form>
  15.  
  16. <?php
  17. }
  18. else{
  19.     echo "aqui estamos!";
  20. }
  21. ?>

No se si es lo que buscas, espero que te sirva.

Saludos.