Re: ctype_digit
| From: | Mario Soto | Date: | Mon, 19 May 2003 02:17:13 +0000 |
| Subject: | Re: ctype_digit | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148184@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Ryan A" <ryan@jumac.com>
To: "Dan Joseph" <djoseph@duhq.us>
Cc: <php-general@lists.php.net>
Sent: Thursday, May 15, 2003 2:12 PM
Subject: Re: [PHP] ctype_digit
> Crap, i cant do that coz i am hosting on a virtual server and i am pretty
> sure they dont have php 4.3.1 either.
> :-(
> I guess i will have to go with is_int()
...or you can still try JavaScript for the result form page, and still check it in the php script if
you can...
>
> Cheers,
>
> -Ryan
>
>
> > Hi,
> >
> > You'll need to compile PHP with the ctype functions enabled. I don't know
> > how to do this personally, I run 4.3.1 and it was automatic, check
> > www.php.net.
> >
> > -Dan Joseph
> >
> > > -----Original Message-----
> > > From: Ryan A [mailto:ryan@jumac.com]
> > > Sent: Thursday, May 15, 2003 4:04 PM
> > > To: php-general@lists.php.net
> > > Subject: [PHP] ctype_digit
> > >
> > >
> > > Hi all,
> > > this:
> > > if (!ctype_digit($price))
> > > {echo 'Error:<b>Price</b> can contain numbers only. Please go
> > > back and make
> > > the necessary changes';
> > > exit;
> > > }
> > >
> > >
> > >
> > > is throwing me an error
> > >
> > > "Call to undefined function: ctype_digit() in
> > > c:\phpdev\www......on line 24"
> > >
> > > any idea why?
> > >
> > > Cheers,
> > > -Ryan
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Mario Soto
mario_s@amigo.net.gt
-.-.-.-