note 17490 added to function.addslashes
| From: | dutchben dot NOSPAM at hotmail dot NO_SPAM dot com | Date: | Tue, 11 Dec 2001 13:25:38 +0000 |
| Subject: | note 17490 added to function.addslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-22502@lists.php.net to get a copy of this message | ||
Here's an easy (PHP 4) way to addslashes to all form variables<br>
foreach($HTTP_GET_VARS as $key => $value) $$key = addslashes($value);
--
http://www.php.net/manual/en/function.addslashes.php
http://master.php.net/manage/user-notes.php?action=edit+17490
http://master.php.net/manage/user-notes.php?action=delete+17490
http://master.php.net/manage/user-notes.php?action=reject+17490