Webskater
12-04-2003, 09:53 AM
I have a text box which is populated with a phone number in international format.
e.g. <input type=text id=numbox value="+44797112233">
If I concatenate a querystring using this value like so ...
location.replace('Change.asp?Num=' + numbox.value)
The '+' at the front of the phone number is removed. I have tried using escape(numbox.value) but this does not work. How can I retain the '+' in this situation?
Any help much appreciated.
e.g. <input type=text id=numbox value="+44797112233">
If I concatenate a querystring using this value like so ...
location.replace('Change.asp?Num=' + numbox.value)
The '+' at the front of the phone number is removed. I have tried using escape(numbox.value) but this does not work. How can I retain the '+' in this situation?
Any help much appreciated.