Help with addslashes and http post vars..

From: Date: Wed, 02 Aug 2000 13:51:53 +0000
Subject: Help with addslashes and http post vars..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9689@lists.php.net to get a copy of this message
I have a form that submits, when the user submits, <input tpye=text name=firstname size=50> name=firstname becomes $firstname when i submit the form, using post. here's my question, i have about 30 of these fields, and i need to insert them all into a database. right not i have to do $firstname = addslashes($firstname); for each variable, can i do something like $HTTP_POST_VARS = addslashes($HTTP_POST_VARS); ?? then will all my varibles i use be fixeD? like $firstname will have the slashes?? Thanks for any help! Chris

« previous php.general (#9689) next »