I've got a function for making input safe. One takes from a textarea on a form.
The problem is when someone types a few paragraphs in it, using regular sentence stuff like ( ' , . () ? ) it kicks it out and gives them my error message.
How can I keep out the unsafe stuff, but still allow someone to "speak their mind"? Something like a preg_replace maybe?
If so, how can I add it on to my other function?
Thanks
Dan
dan_t 0 Newbie Poster
matthewl -1 Junior Poster in Training
dan_t 0 Newbie Poster
matthewl -1 Junior Poster in Training

rajarajan2017
matthewl -1 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.