Mutley Posted December 22, 2006 Share Posted December 22, 2006 How would I restrict characters on a registration form then it redirect to the form with the error displayed at the top? Link to comment https://forums.phpfreaks.com/topic/31623-restricting-characters-on-registration-form/ Share on other sites More sharing options...
papaface Posted December 22, 2006 Share Posted December 22, 2006 Look into ereg http://php.net/manual/en/function.ereg.php Link to comment https://forums.phpfreaks.com/topic/31623-restricting-characters-on-registration-form/#findComment-146558 Share on other sites More sharing options...
Mutley Posted December 23, 2006 Author Share Posted December 23, 2006 I've got the basic idea but how would I tie this to a form?[code]if (ereg ("(~`!_@#$%^&*()=+{}|:;"/?,)", $)) { echo "$";} else { echo "Punctuation is not allowed.";}[/code] Link to comment https://forums.phpfreaks.com/topic/31623-restricting-characters-on-registration-form/#findComment-146842 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.