TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-06-2006, 03:16 PM   #1 (permalink)
The Visitor
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
3gg1 is on a distinguished road
Default 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
3gg1 is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Submission form issues Ogden2k Absolute Beginners 5 06-01-2005 11:55 PM
Form Processing William Tips & Tricks 8 04-17-2005 03:24 PM
Form Processing Help Veolus Absolute Beginners 3 04-16-2005 04:16 AM


All times are GMT. The time now is 05:12 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design