🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2543

Re: duda php (otra vez)

#2543
From: Rickoj
Date: Wed, 07 Dec 2005 20:19
70 lines
2554 bytes
A Jos� Miguel Santib��ez se le ocurrio tipear
> En el cap�tulo anterior (news:dn7ckp$b9s$1@news.nivel5.cl), "SorbitoL"
> <ineira@VETEERRE.NET> dijo:
>
>>
>> "Rick_oj" <rick_oj@[sin-esto]tutopia.com> escribi� en el mensaje
>> news:dn78p5$a2d$1@news.nivel5.cl...
>>>
>>> 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
>>>     {
>>>    ....
>>>    ....
>>>     }
>>> }
>>>
>>
>> Pon el caracter de escape antes de las comillas en los "echo":
>>
>> dice:
>> echo "<a href="ingreso_datos.php">Volver</a>";
>>
>> deberia decir:
>> echo "<a href=\"ingreso_datos.php\">Volver</a>";
>
> O combina adecuadamente las dobles y simples:
> podia decir:
> echo "<a href='ingreso_datos.php'>Volver</a>";
>
> Lo que no entiendo, es porque no te funciona el:
> if ( ($_POST['nombre']=="") ) {
>>
>  Debe ingresar datos en nombre <br>
>  <a href="ingreso_datos.php">Volver</a>
> <?
> } else {
>  if  ( ($_POST['rut']=="") ) {
>>
> Debe ingresar datos en nombre <br>
> <a href="ingreso_datos.php">Volver</a>
> <?
>  } else {
>>
>    ....
>    ....
> <?
>  }
> }
>
>>
>
> eso...


jeje siempre tengo confusion entre los ' y " en php
probare ambos casos
-- 
"Nadie puede quitarme el derecho
a ser un perfecto imbecil" 
Technical Details
Message-ID: <dn7g51$d5r$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
References: <dn78p5$a2d$1@news.nivel5.cl> <dn7ckp$b9s$1@news.nivel5.cl> <Xns9725AB46BB4B4jmsnews@200.27.221.71>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,6276fef940e6c824
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
From: "Rick_oj" <rick_oj@[sin-esto]tutopia.com>
Newsgroups: chile.comp.programacion
Subject: Re: duda php (otra vez)
Date: Wed, 7 Dec 2005 17:19:43 -0300
Organization: Varios
Lines: 72
Message-ID: <dn7g51$d5r$1@news.nivel5.cl>
References: <dn78p5$a2d$1@news.nivel5.cl> <dn7ckp$b9s$1@news.nivel5.cl> <Xns9725AB46BB4B4jmsnews@200.27.221.71>
NNTP-Posting-Host: pc-115-201-120-200.cm.vtr.net
X-Trace: news.nivel5.cl 1133986785 13499 200.120.201.115 (7 Dec 2005 20:19:45 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Wed, 7 Dec 2005 20:19:45 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original