Link Details

Link 103277 thumbnail
User 262632 avatar

By roshanbh
via roshanbh.com.np
Published: Aug 14 2008 / 04:53

Using this technique you can easily filter user submitted data (post data) easily in PHP by calling a call back function with array_map() function of PHP.
  • 7
  • 8
  • 613
  • 263

Comments

Add your comment
User 206355 avatar

nyuhuhuu replied ago:

4 votes Vote down Vote up Reply

Hey guys, PHP has builtin input data filtering!
http://php.net/filter

User 273110 avatar

isnoop replied ago:

0 votes Vote down Vote up Reply

Ignorance of the built-in PHP filtering functions aside, the author comments on this post encouraging users to use extract() on $_POST. Please do not follow this advice. If you're going to do that, you might as well downgrade to PHP 4 and enable register_globals.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.