phpnoob
-
Posts
117 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by phpnoob
-
-
I was made a post secure for my forum, and now i have time to finish it, but i'm stock and need help.
$post=htmlspecialchars($_POST['post']);$search=array('<?','?>');$replace=array('<?', '?>');echo str_replace($search, $replace, $post);
The problem, if i send a " the code add this \\" <----
- 1
Security for post
in PHP
Posted · Edited by phpnoob