Ver Mensaje Individual
  #8 (permalink)  
Antiguo 16/12/2011, 07:26
Avatar de truman_truman
truman_truman
 
Fecha de Ingreso: febrero-2010
Ubicación: /home/user
Mensajes: 1.341
Antigüedad: 14 años, 2 meses
Puntos: 177
Respuesta: validacion de formulario de registro,

Te pongo algo bien básico para que veas el funcionamiento, analizalo, copialo y pegalo tal cual está que funciona:

Código PHP:
Ver original
  1. <?php
  2.  
  3. if(isset($_POST['nombre']))
  4. {
  5.     if($_POST['nombre'] == "")
  6.     {
  7.         echo 'ta vacio';
  8.     }else{
  9.         echo 'tiene algo';
  10.     }
  11. }
  12.  
  13.  
  14.  
  15. ?><form name="form1" method="post" action="">
  16.   <label for="nombre"></label>
  17.   <input type="text" name="nombre" id="nombre">
  18.   <input type="submit" name="button" id="button" value="Enviar">
  19. </form>
__________________
la la la