TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Form validation help (http://www.talkphp.com/general/159-form-validation-help.html)

3gg1 10-06-2006 03:16 PM

Form validation help
 
This is my php code:

PHP Code:

    if (!eregi ('^[[:alnum:]][A-Za-z0-9_.,-/ +-]{3,}$'stripslashes(trim($_POST['fMessage'])))) { 

It will be the validation code for a message field on a contact form. I want users to be able to type A-z,Ä,Å,Ö,ä,å,ö, and normal punctuation chars. I also want users to be able to do line breaks (press enter so they get to the next line on the same field). Other wise they will get an error message.

Thanks for help.

-3gg1


All times are GMT. The time now is 07:48 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0