Hello, What can i do to remove unwanted characters from form? I want to have numbers european letters and punctuation marks. I just want to remove everything else. Thanks
Here would be my method. Create an array of acceptable characters (e.g. 'a','b',...,'0','1',...) Preg_Split the input into single characters (see www.php.net/preg_split for sample code). Foreach() every character, and if in_array($character, $validcharacters) add it to a new, final string (i.e. $valid_input .= $character). I hope this helps, Jay