Closed Thread Icon

Preserved Topic: HELP - URL encoding Pages that link to <a href="https://ozoneasylum.com/backlink?for=18494" title="Pages that link to Preserved Topic: HELP - URL encoding" rel="nofollow" >Preserved Topic: HELP - URL encoding\

 
Author Thread
Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 11-21-2001 07:57

Hi.
I created a page which enable the user to give his one values to some known url parameters.
Then a link with the url (just created) is added to the current page.
The problem I face is that the user may enter the following characters:
%, &, #, ', " ....
How can I encode the string (in the client) so it will pass the right parameters to the server?

Thanks in advanced
Yossi.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 11-21-2001 08:54

use JavaScript's escape()

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 11-21-2001 20:16

Thanks

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-22-2001 01:27

(use the unescape() function to do the reverse, if necessary)

« BackwardsOnwards »

Show Forum Drop Down Menu