๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2540

Re: duda php (otra vez)

#2540
From: Vinko Vrsalovic
Date: Wed, 07 Dec 2005 18:47
41 lines
1864 bytes
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>";
> 

En todo caso es harto mas sano utilizar un motor de templates y no
mezclar php con HTML. El clasico para PHP es Smarty 

http://smarty.php.net

-- 
V. 
Technical Details
Message-ID: <43972e4a@news.vcd.cl>
Path: arc1-ca.pugleaf.net!g2news1.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> <dn7ckp$b9s$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
Message-ID: <43972e4a@news.vcd.cl>
From: Vinko Vrsalovic <el@vinko.invalid>
Subject: Re: duda php (otra vez)
Newsgroups: chile.comp.programacion
References: <dn78p5$a2d$1@news.nivel5.cl> <dn7ckp$b9s$1@news.nivel5.cl>
User-Agent: tin/1.7.8-20050315 ("Scalpay") (UNIX) (Linux/2.6.12-10-386 (i686))
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 200.73.29.19
X-Original-NNTP-Posting-Host: 200.73.29.19
Date: 7 Dec 2005 14:47:38 -0400
X-Trace: news.vcd.cl!not-for-mail 1133981258 200.73.29.19 (7 Dec 2005 14:47:38 -0400)
X-Original-Trace: 7 Dec 2005 14:47:38 -0400, 200.73.29.19
Lines: 41
X-Authenticated-User: vinko
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.vcd.cl!not-for-mail!not-for-mail