note 99756 deleted from function.addslashes by danbrown
| From: | danbrown@php.net | Date: | Fri, 03 Sep 2010 13:49:19 +0000 |
| Subject: | note 99756 deleted from function.addslashes by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172296@lists.php.net to get a copy of this message | ||
Note Submitter: rakeshnsony at gmail dot com
----
<?php
/*
you can addslashes your all post variables. using a simple foreach loop.
*/
foreach ($_POST as $key => $value) {
$_POST[$key] = addslashes("$_POST[$key]");
}
?>