removing special charaters from a string

From: Date: Tue, 21 Jan 2003 23:22:39 +0000
Subject: removing special charaters from a string
Groups: php.windows 
Request: Send a blank email to php-windows+get-18020@lists.php.net to get a copy of this message
I have a variable i am pulling from a url, but i want to make sure no one can hack my pages using the sql url hack. Does anyone have a good way to strip out any special characters? like: ',",;,:,/,.,&, etc... Thanks, Matt

« previous php.windows (#18020) next »