PHP variable not echoing on page via ajax jquery

后端 未结 4 476
温柔的废话
温柔的废话 2020-12-22 13:16

I am having a problem with my code as my php variable is not being echoed on page when using ajax jquery. Here is my code...



        
4条回答
  •  轮回少年
    2020-12-22 13:44

    A bit more simplified would be:

    $.post(URL, { data: somefield }, function(result) {
        result = JSON.parse(result);
        If(result && result.status === 'true'){
    
        }
    )};
    

    Depends a bit on the return at server side.

提交回复
热议问题