networkthis Posted May 3, 2008 Share Posted May 3, 2008 In my forms fields are currently accepting invalid characters, I would like to know the best method for getting rid of these characters in my forms. “”;;”””?#$$%%&&+… Link to comment https://forums.phpfreaks.com/topic/103967-help-with-invalid-characters-in-form-fields/ Share on other sites More sharing options...
sasa Posted May 3, 2008 Share Posted May 3, 2008 <?php $a='$'; if(preg_match('/[“”;;”””?#$$%%&&+]/', $a, $b)) echo 'error'; else echo 'ok'; ?> Link to comment https://forums.phpfreaks.com/topic/103967-help-with-invalid-characters-in-form-fields/#findComment-532260 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.