lead2gold Posted April 10, 2006 Share Posted April 10, 2006 I'm trying to parse a <textarea name='textarea'></textarea> after a submit. Everything parses fine until someone creates a new line (presses enter)[code] if (!ereg('^[0-9A-Za-z\r\n\t<>&()\/\'\" ]+$', $POST['textarea'])){ echo "error";}[/code]I thought \r and(/or) \n are the commands that are created a new line, but it appears it is something else. The regular expression defined above won't pick it up.What am i overlooking/doing wrong? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.