fuction to remove tags
Posted: Tue Jul 17, 2007 10:00 am
pickle | Please use
pickle | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi
I'm not sure whether to post this here or in php security
How do you think if I define a function like this:
[syntax="php-brief"]function m($variable){
$variable=addslashes($variable);
$variable=strip_tags($variable);
$variable=mysql_real_scape_string($variable);
return $variable;
}pickle | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]