PHP function needed

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tonchily
Forum Commoner
Posts: 54
Joined: Thu Sep 02, 2010 10:44 am

PHP function needed

Post by tonchily »

I need a function that checks if there's a character in the given string. Or better yet, how can I specify that my text field must consist of A-Z, a-z, 0-9 and "-" only or rather the script would die?

Thanks.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: PHP function needed

Post by Weirdan »

Post Reply