PDA

View Full Version : passing + in a URL



Darksbane
Jan 30th, 2003, 06:22 PM
it seems like I knew how to do this before but how do you pass a + in a URL variable.

so when it gets to the next page it will be something like

?Var1=+1

Borgtex
Jan 30th, 2003, 07:24 PM
:confused: mypage.htm?Var1=+1. Can you explain it better?

Darksbane
Jan 30th, 2003, 07:37 PM
basically the + disappears when passed on the URL. So you get

?Var1= 1

any ideas how to escape the plus sign?

meow
Jan 30th, 2003, 08:02 PM
Does url encoding the '+' help? ?Var1=%2B1