escape function and uriencode in Javascript

smo1234
08:16:10
While sending variables in a query string we need to encode the data. This is required before sending as some special chars like & can be there inside data. However we need to decode the data by PHP or any other server side programs before using it so by using escape function in Javascript it can be done.

Escape function in javaScript

Then why encodeURI function is used to send data in query strings ?
Please Login to post your reply or start a new topic