When i give form value to this function, always, an empty string returns.
<?php
function safeinput($data)
{
    $data = trim($data);
    $data = stripslashes($data);
    $data = htmlspecialchars($data);
    $data = mysql_real_escape_string($data);
    return $data;
}
?>
Is there another way to secure inputs? note : Operations done under joomla
 
     
    