Detecting if GET field is Numeric or Alpha numeric
| From: | Stephen of Blank Canvas | Date: | Wed, 19 Mar 2003 06:21:18 +0000 |
| Subject: | Detecting if GET field is Numeric or Alpha numeric | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140252@lists.php.net to get a copy of this message | ||
Hi Everyone,
Does anyone know if it is possible to check the values of a $_GET field
and see if the submitted data is numeric or contains any letters.
What I want to do is allow users to link to a record in a MySQL db using
the record id's and the values of the name field.
www.domain.com/showlisting.php?town=1 and
www.domain.com/showlisting.php?town=London
Both would work by performing a search on different fields in the MySQL
SELECT statement. Just an idea to make thing easy for users, any help
appreciated.
Thanks
Stephen