note 72752 added to function.htmlspecialchars

From: Date: Wed, 31 Jan 2007 18:22:13 +0000
Subject: note 72752 added to function.htmlspecialchars
Groups: php.notes 
Request: Send a blank email to php-notes+get-122430@lists.php.net to get a copy of this message
u can use htmlspecialcahrs for secure HTTP_GET_VARS[] , HTTP_POST_VARS[] and HTTP_COOKIE_VARS[] .... for example : ----------------------------------------- <?php function HtmlSecure() { $_GET = array_map('htmlspecialchars' , $_GET); $_POST = array_map('htmlspecialchars' , $_POST); $_COOKIE = array_map('htmlspecialchars' , $_COOKIE); } HtmlSecure(); //Here Put Your Page Contents ?> ----------------------------------------- ---- Server IP: 69.147.83.197 Probable Submitter: 217.54.104.82 ---- Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars.php Edit -- https://master.php.net/note/edit/72752 Del: integrated -- https://master.php.net/note/delete/72752/integrated Del: useless -- https://master.php.net/note/delete/72752/useless Del: bad code -- https://master.php.net/note/delete/72752/bad+code Del: spam -- https://master.php.net/note/delete/72752/spam Del: non-english -- https://master.php.net/note/delete/72752/non-english Del: in docs -- https://master.php.net/note/delete/72752/in+docs Del: other reasons-- https://master.php.net/note/delete/72752 Reject -- https://master.php.net/note/reject/72752 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122430) next »