MemphiS Posted July 13, 2007 Share Posted July 13, 2007 Just wondering...if i was to do something like: <?php foreach ($_POST as $value){ strip_tags(addslashes($value)) } ?> Would that cover every $_POST on every page? instead of having to place strip_tags(addslashes()); on all inputs i create.. ??? Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 13, 2007 Share Posted July 13, 2007 $_POST[$value]=strip_tags(addslashes($value)); I think thats right. Quote Link to comment Share on other sites More sharing options...
MemphiS Posted July 13, 2007 Author Share Posted July 13, 2007 hmm that would save alot of time Quote Link to comment Share on other sites More sharing options...
MemphiS Posted July 13, 2007 Author Share Posted July 13, 2007 Would this create greater server resource usuage though? hmm ??? Quote Link to comment Share on other sites More sharing options...
infid3l Posted July 13, 2007 Share Posted July 13, 2007 Would this create greater server resource usuage though? hmm ??? Not much at all, unless you have tons of POST data coming in. Keep in mind this will only take up any resources when someone is POSTing, otherwise it does next to nothing. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 13, 2007 Share Posted July 13, 2007 Well, if you're only retrieving data from the post array then its not a problem is it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.