SyntaxFix
Write A Post
Hire A Developer
Questions
Use this way instead of your way.
addslashes(trim($_POST['username']));