more help with spaces, please (the '%20's are breeding!)
Posted on 2002-06-13
Okay so this works:
$location =~ s/ /%20/g;
if I take it out, it doesn't work (in Netscape, but IE is fine).
However, it is replacing a single space with THREE '%20's
So that what should be "new york" comes out as "new%20%20%20york" on one page....
But wait there's more (no pun intended)!
On the next page there are 9 of them! they are multiplying by three!
The script works nonetheless, but this is really messy.
Anyone know why it's doing this, and how I can fix it?