therealphil
11-04-2003, 05:53 AM
I have a string, input by the user that I put through validation which replaces any spaces (" ") with a hyphen ("-").
The problem is that if there is more than one space, only the first space is replaced. I have tried using do/while to create a loop, but that just makes the browser crash.
The end result should be that any string, regardless of how many spaces it has, is replaced with a string that has hyphens in place of spaces.
I have attached the page where it all happens.
Any help?
Thanks, Phil
The problem is that if there is more than one space, only the first space is replaced. I have tried using do/while to create a loop, but that just makes the browser crash.
The end result should be that any string, regardless of how many spaces it has, is replaced with a string that has hyphens in place of spaces.
I have attached the page where it all happens.
Any help?
Thanks, Phil