🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2478

Re: duda php (otra vez)

#2478
From: Jos� Miguel Santib��ez
Date: Wed, 11 Jan 2006 02:32
45 lines
1991 bytes
En el cap�tulo anterior (news:dq1e7g$f7k$1@news.nivel5.cl), Yiyux
<"kfw[at]"@softhome.net> dijo: 

(...)
>>>
>>>if ( ($_POST['nombre']=="") )
>>>{
>>> print("Debe ingresar datos en nombre <br>");
>>> echo "<a href="ingreso_datos.php">Volver</a>";
>>>   }
>>>else
>>>{
>>>   if  ( ($_POST['rut']=="") )
>>>    {
>>>    print("Debe ingresar datos en nombre <br>");
>>>    echo "<a href="ingreso_datos.php">Volver</a>";
>>>     }
>>>    else
>>>    {
>>>   ....
>>>   ....
>>>    }
>>>}
>>>
>> 
>> 
> la funcion empty() te puede servir tb mas que $_POST['rut']==""
> ej:
> $aux = $_POST['rut'];
> if(empty($aux))
> {
> }
> 
> Saludos y arriba php !!!!
> 

Ojo, $_POST["rut"] == 0 retorna verdadero a empty...

-- 
"que manera de postear imbecilidades."
      (mundialero en CBI)

                           Jose M. Santiba�ez A.
                             <jms@nivel5.cl>
                           <http://caos.cl/jms>
Technical Details
Message-ID: <Xns9747E3F14EA82jmsnews@200.27.221.71>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.vcd.cl!not-for-mail!not-for-mail
References: <dn78p5$a2d$1@news.nivel5.cl> <dn7m50$fsn$1@news.nivel5.cl> <dq1e7g$f7k$1@news.nivel5.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,6276fef940e6c824
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Newsgroups: chile.comp.programacion
Subject: Re: duda php (otra vez)
From: "Jos� Miguel Santib��ez" <jms.nospam@nivel5.cl>
References: <dn78p5$a2d$1@news.nivel5.cl> <dn7m50$fsn$1@news.nivel5.cl> <dq1e7g$f7k$1@news.nivel5.cl>
Organization: Caos Consultores
Message-ID: <Xns9747E3F14EA82jmsnews@200.27.221.71>
User-Agent: Xnews/5.04.25
X-Face: +|NgjgFM{<rs%\Q|vUu16]a6,}?MJTA<!PEEI+x&Gw-Gyq+?$}fvo+.(,-r;)~Qzn)#{{nxU,OT?w^s<7m4ckCJ*L$c#I)yHL7b)GdU*#l
NNTP-Posting-Host: 200.112.82.33
X-Original-NNTP-Posting-Host: 200.112.82.33
Date: 10 Jan 2006 22:32:06 -0400
X-Trace: news.vcd.cl!not-for-mail 1136943126 200.112.82.33 (10 Jan 2006 22:32:06 -0400)
X-Original-Trace: 10 Jan 2006 22:32:06 -0400, 200.112.82.33
Lines: 45
X-Authenticated-User: jms
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.vcd.cl!not-for-mail!not-for-mail