note 72396 added to function.array-map
| From: | jmalinsky at gmail dot com | Date: | Wed, 17 Jan 2007 15:53:30 +0000 |
| Subject: | note 72396 added to function.array-map | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121835@lists.php.net to get a copy of this message | ||
A quick way to ensure that all your POSTed form variables are properly sanitized before adding them
to your MySQL Database:
$_POST = array_map('mysql_real_escape_string', $_POST);
Then just access your variables as you normally would (ie: $name = $_POST['name'];)
----
Server IP: 66.207.199.35
Probable Submitter: 64.229.154.254
----
Manual Page -- http://www.php.net/manual/en/function.array-map.php
Edit -- https://master.php.net/note/edit/72396
Del: integrated -- https://master.php.net/note/delete/72396/integrated
Del: useless -- https://master.php.net/note/delete/72396/useless
Del: bad code -- https://master.php.net/note/delete/72396/bad+code
Del: spam -- https://master.php.net/note/delete/72396/spam
Del: non-english -- https://master.php.net/note/delete/72396/non-english
Del: in docs -- https://master.php.net/note/delete/72396/in+docs
Del: other reasons-- https://master.php.net/note/delete/72396
Reject -- https://master.php.net/note/reject/72396
Search -- https://master.php.net/manage/user-notes.php