Do you need to secure multiple select boxes being that the options are already set rather then user input?
I use this function to secure regular inputs:
function keepmesafe($input)
{
if(get_magic_quotes_gpc() == true)
{
$input = stripslashes($input);
}
return htmlspecialchars($input);
}
but when I use it on multiple select i get this warning:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in ...
I understand the warning it expects a string but gets an array, so if you do need to secure what do I need to change in the current function or has anyone a function for this?