Re: extract($_POST)
| From: | @ Edwin | Date: | Sun, 27 Oct 2002 02:02:45 +0000 |
| Subject: | Re: extract($_POST) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121570@lists.php.net to get a copy of this message | ||
Or,
You can use this:
http://www.php.net/manual/en/function.is-numeric.php
- E
"John W. Holmes" <holmes072000@charter.net> wrote:
> > > Then make sure $id is a number. You can use is_int, or (int), or
> > whatever.
> >
> > It appears that any numeric values passed via the URL (..?param=10001)
> are
> > automatically treated as strings. If I pass ?param=1001 to the
> following
> > script...
>
> So turn it into an integer.
>
...[snip]...