Will strip_tags($HTTP_POST_VARS); remove the tags from all the post variables or can this function be used only on individual variables ?
Azaar
| SitePoint Sponsor |


Will strip_tags($HTTP_POST_VARS); remove the tags from all the post variables or can this function be used only on individual variables ?
Azaar





http://us2.php.net/manual/en/function.strip-tags.php
Looks like just strings, not arrays.
Haven't tested it to confirm, but when either an array or a string can be used it is called "mixed" in the manual.string strip_tags ( string str [, string allowable_tags])
example:So you need to loop through the array.mixed str_replace ( mixed search, mixed replace, mixed subject)![]()
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
i usually do something like
PHP Code:foreach($_POST as $key=>$value) {
$_POST[$key]=stripslashes($value);
}
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com


thank u both
Bookmarks