[snip] what kind of a function can I use that will tell me whether a variable is alphanumeric (that is has only characters A-Z or 1-9 )? [/snip] You can use a regular expression, start here http://us3.php.net/regex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php