coolmike222 Posted September 6, 2008 Share Posted September 6, 2008 i made a htaccess redirect script and it works until some one makes a username with a space is there any way to not accept the username with spaces on it before the complete the registation? Link to comment https://forums.phpfreaks.com/topic/122985-registration/ Share on other sites More sharing options...
Fadion Posted September 6, 2008 Share Posted September 6, 2008 Do it in the validation code for the user registration: <?php //some validation code if(strpos($username, ' ')){ echo "The username can't have spaces. Try another one."; } //some other validation code ?> Link to comment https://forums.phpfreaks.com/topic/122985-registration/#findComment-635138 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.