View Single Post
Old 05-14-2004, 07:42 AM   #1 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
Cleaning up posted variables before saving.

I want to get the cleanest (ie. no extra spaces, no HTML, etc) values possible when a form is submitted. I am currently using the following functions.

strip_tags : remove HTML tags
trim : remove white space
str_replace : attempt to remove double spaces between words

is there anything else i can do with my values? these are all i can think of.
Admin is offline   Reply With Quote