note 58228 added to language.variables.external
| From: | aescomputerATyahooDOTcom at osu1 dot php dot net | Date: | Fri, 28 Oct 2005 06:01:09 +0000 |
| Subject: | note 58228 added to language.variables.external | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97724@lists.php.net to get a copy of this message | ||
Here are two usefull functions for forms:
<?php
// clean html tags out of url attributes
if(!empty($_REQUEST)){
foreach($_REQUEST as $x => $y){
$_REQUEST[$x] = str_replace('<', '<',
str_replace('>', '>', $y));
}
}
// replace carrage returns in url attributes with <br>
if(!empty($_REQUEST)){
foreach($_REQUEST as $x => $y){
$_REQUEST[$x] = str_replace("\n", '<br>', $y);
}
}
?>
----
Manual Page -- http://www.php.net/manual/en/language.variables.external.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58228
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58228&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58228&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58228&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58228&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58228&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58228&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58228&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58228&report=yes
Search -- http://master.php.net/manage/user-notes.php