(关于XML HTTP请求的Java 和用于执行QQ的PHP。)
I m 建造一个可进行查询的网站。 它使用XMLHTTP要求使用GET方法,并向执行该方法的PHP文字发出询问。 在我介绍括号内编码(<>>>(<>>>>>>>>/代码之前,该编码将予以罚款。
这方面的一个例子是:
function executeQry(){
qry = document.getElementByID( textarea ).value;
qryHTTPRequest(encodeURI(qry));
//I ve also tried encodeURIComponent(qry);
}
function xmlHTTPRequest(qry){
//fetches
urlFetch = "http://my.url.com/script.php?qry=" + qry;
}
这是一个快速的参考,我知道,我的xml-http://www.un.org/Depts/?
SELECT * FROM `tableName`
工作罚款,但当你试图做这样的事情时。
CREATE TABLE `new_table`
AS (SELECT * FROM `old_table`)
Then this is when it won t execute, I get the 403 error so I figured that it s an with the ()
because I even tried this same code on the PHP itself, without having to pass it through and it worked, so there must be an issue with the URL encoding process right? If this is the issue, is there a method for encoding these characters? I assume there are other characters that don t get encoded with encodeURI()
method as well as the encodeURIComponent()
. Thanks in advance!