Maison > Article > développement back-end > 页面表奇数据通过AJAX传到后台,中文取不到值?为什么
页面表单数据通过AJAX传到后台,中文取不到值?为什么?
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> var userindex = WebClient.Store[0].UserIndex; var name = $("name-input").value; var phone = $("phone-input").value; var babyname = $("babyname-input").value; var password = $("password-input").value; var url = "php/login.phpaction=Modify&UserIndex="+userindex+"&Name="+name+"&Phone="+phone+"&BabyName="+babyname+"&Password="+password+"&random="+Math.random();
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> $name = ""; if(array_key_exists('Name',$_GET)) { $name = trim($_GET['Name']); }