hello,
i am working on a scirpt that will allow user to input data to the database, and i have something like that to make sure that the user can't input the following:
<
%
^
and here is the code:
$myinfo = ereg_replace("<|--|%|^|=|~|>", "", $myinfo);
everything seems ok except for , it's still echoing out
can somebody tell me why it is doing that?
and is my code right?
thank you!