I have a form field and it has come to my attention that some people put spaces in the field. How can I totaly strip all spaces from a text string. EG.
[code=php]$text = “A b cd e f g”; stripspaces($text); echo $text //Echos Abcdefg[/code]
@PezmcauthorMar 03.2007 — #I have already tried this but it dont work[code=php] $initials = MakeSafe(strtoupper(trim($_POST["initials"]))); $initials = str_replace(" ", "", $initials); [/code]