corillo181 Posted June 2, 2006 Share Posted June 2, 2006 can someone please give me or tell me how to do a function that if a username got white space in it the script would pop up and say " can't have blank space on your username"..sorry i know this is not java but i need it real quick and this is the only forum i come to thanx for any one that can help me as quick as possible Link to comment https://forums.phpfreaks.com/topic/11038-a-quick-help-not-php/ Share on other sites More sharing options...
seanlim Posted June 3, 2006 Share Posted June 3, 2006 Hi there,try this[code]function checkSpace(text){if(text.indexOf(" ")!=-1)alert("Can't have blank space in your username");}[/code]HTH Link to comment https://forums.phpfreaks.com/topic/11038-a-quick-help-not-php/#findComment-41478 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.