Passing “(” and “)” through a URI causes a 403 error, how can I encode them?
问题 (JavaScript for the XML HTTP request and PHP for the execution SQL query.) I'm building a web app that executes queries. It uses the XMLHTTP request GET method and passes a query to a PHP script that executes it. It works fine until I introduce parentheses ( ) in it. Here is an example of how works: function executeQry(){ qry = document.getElementByID('textarea').value; qryHTTPRequest(encodeURI(qry)); //I've also tried encodeURIComponent(qry); } function xmlHTTPRequest(qry){ //fetches