不允许使用关键字符

时间:2015-03-03 12:08:01

标签: php jquery ajax codeigniter

我在我的Codeigniter应用程序中使用jQuery serialize发布form。  但我得到了一个像不允许的关键字符的回应。  发布的网址如下所示。

  

CANDIDATE_NAME = 1000026&安培; CANDIDATE_NAME =安培; CANDIDATE_NAME =安培; CANDIDATE_NAME =安培; CANDIDATE_NAME =安培; CANDIDATE_NAME =安培; CANDIDATE_NAME =安培; CANDIDATE_NAME =安培; CANDIDATE_NAME =安培; CANDIDATE_NAME =安培; CANDIDATE_NAME =安培;板=安培; math_min_marks =安培; math_max_marks =安培; math_marks_secured =安培; math_marks_percent =安培; physics_min_marks =安培; physics_max_marks =安培; physics_marks_secured =安培; physics_marks_percent =安培; optional_subject =安培; optional_min_marks =安培; optional_max_marks =安培; optional_marks_secured =安培; optional_marks_percent =&安培; mobileNum =安培;电子邮件=安培; agree1 = agree1&安培; agree2 = agree2&安培; agree3 = agree3

jQuery帖子是,

var datastring = $("#register").serialize();

$.ajax({
    type: "POST",
    url: "<?php echo base_url('register/savedraft'); ?>",
    data: JSON.stringify(datastring),
    dataType:"json",
    success: function (result) {
        if(result){
            alert(result)
        }
    }
});

0 个答案:

没有答案