Forum Moderators: open

Message Too Old, No Replies

alternatives to server.urlencode

         

laura2k

7:04 pm on Dec 21, 2003 (gmt 0)



hi,

at the moment i am using the server.urlencode to place a + symbol in between spaces of a variable. However, i wanted to know is there any way i can get rid of spaces instead of replacing it with a + symbol e.g. instead of Yahoo+News - YahooNews?

Any help would be appreciated.

Thanx in advance

ziggystardust

7:16 pm on Dec 21, 2003 (gmt 0)

10+ Year Member



Hi,

tried using a normal Replace before you post the variable to the next page?

yourString = Replace(yourString, " ", "")

and then do the urlencode?

good luck
//ZS

laura2k

7:30 pm on Dec 21, 2003 (gmt 0)



Thanx ZS,

it worked. If i wanted to make the variable lowercase, how can i do that?

Thanx

ziggystardust

7:41 pm on Dec 21, 2003 (gmt 0)

10+ Year Member



'lower case
yourString = lCase(yourString)

'upper case
yourString = uCase(yourString)

//ZS