🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2564

Re: duda php (otra vez)

#2564
From: Rickoj
Date: Sat, 10 Dec 2005 03:29
26 lines
1986 bytes
A Jos� Miguel Santib��ez se le ocurrio tipear
>>> A mi, el siguiente c�digo me funciona bien:
>>> <html><body>
>>> <?
>>> if ($numero!='' &&
>>>    strlen($numero) < 8 &&
>>>    is_numeric($numero) &&
>>>    $numero{0} >= 0 &&
>>>    $numero{0} <= 2)
>>>  echo "todo ok...";
>>>>
>>> <hr>
>>> <form><input name=numero></form>
>>> </body></html>
>>
>> eso es lo extra�o deberia funcionar pero solo me aparece lo del else
>
> Notaste que cambi� lo de $numero[0] por $numero{0} ??

si cuando me lo indicaste lo probe, buehh
algo sera este php me esta ma�oso con los if ayer me paso lo mismo
bueno gracias por responder (la mayoria de las veces respondes tu)

-- 
"Nadie puede quitarme el derecho
a ser un perfecto imbecil" 
Technical Details
Message-ID: <dndi3o$648$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
References: <dn78p5$a2d$1@news.nivel5.cl> <dn7m50$fsn$1@news.nivel5.cl> <dnad0m$2tc$1@news.nivel5.cl> <Xns9727E77F5ED4jmsnews@200.27.221.71> <dndcpu$48h$1@news.nivel5.cl> <Xns9727EBD91BD30jmsnews@200.27.221.71> <dnddrb$4ej$1@news.nivel5.cl> <Xns9727F13E834D0jmsnews@200.27.221.71> <dndg9o$57c$1@news.nivel5.cl> <Xns972824744EABjmsnews@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!news3.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: Sat, 10 Dec 2005 00:29:59 -0300
Organization: Varios
Lines: 28
Message-ID: <dndi3o$648$1@news.nivel5.cl>
References: <dn78p5$a2d$1@news.nivel5.cl> <dn7m50$fsn$1@news.nivel5.cl> <dnad0m$2tc$1@news.nivel5.cl> <Xns9727E77F5ED4jmsnews@200.27.221.71> <dndcpu$48h$1@news.nivel5.cl> <Xns9727EBD91BD30jmsnews@200.27.221.71> <dnddrb$4ej$1@news.nivel5.cl> <Xns9727F13E834D0jmsnews@200.27.221.71> <dndg9o$57c$1@news.nivel5.cl> <Xns972824744EABjmsnews@200.27.221.71>
NNTP-Posting-Host: pc-115-201-120-200.cm.vtr.net
X-Trace: news.nivel5.cl 1134185400 6280 200.120.201.115 (10 Dec 2005 03:30:00 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Sat, 10 Dec 2005 03:30:00 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180