I have been searching around and have not really found what I need. I have an input form and I only want the user to be able to input sentance structer type messages. I know you can use this to allow only letters and numbers:
[code=php]if (!ereg(“^[A-Za-z0-9]$”,$message)){
echo “You must enter a valid message!”;
}
I also need to allow such things as periods, commas, question marks, etc… Really anything that you would possible use in a sentance but not allow any html or php tags or any other types. So basicly all they should be able to type in the message box is a normal english sentance and not any code and what not. I’m sure it’s possible but I can’t find it! I have searched through php.net and couldn’t find it! I hope someone can help. Thanks. ?