要通过纯 JavaScript 提交 - 而不是 jQuery... ajax JSON 请求到服务器类型 = POST(安全登录请求)需要 Web 表单?
没有网络表单怎么办......将JSON发送的字符串var放在哪里以及如何/在php中获取什么?
ajax3.send(jsonStringhere); // ??? 如何获得在 php 中???
function loginProcess() {
var userID = document.getElementById( "name" ).value;
var email = document.getElementById( "email" ).value;
var password = document.getElementById( "password" ).value;
ajax3 = new XMLHttpRequest();
//1st way
ajax3.open("GET","loginProcess.php?userID="+userID+"&email="+email+"&password="+password,false);
ajax3.addEventListener("readystatechange", processResponse, true);
ajax3.send();
changeDisplay("loginRegisterDiv");
//2nd way JSON post type here
//???
}