Jump to content


a quick help not php

  • Please log in to reply
1 reply to this topic

#1 corillo181

  • Members
  • PipPipPip
  • Advanced Member
  • 896 posts

Posted 02 June 2006 - 04:02 PM

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

#2 seanlim

  • Members
  • PipPipPip
  • Advanced Member
  • 355 posts
  • LocationLondon, United Kingdom

Posted 03 June 2006 - 04:00 PM

Hi there,

try this

function checkSpace(text){
if(text.indexOf(" ")!=-1)
alert("Can't have blank space in your username");


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users