Sending JSON jQuery Ajax to PHP and back

后端 未结 4 1973
借酒劲吻你
借酒劲吻你 2021-01-27 12:46

I\'m having problems sending a JSON jQuery array via Ajax to a PHP script. What is the problem here:

var tee = $(\'#voting_image img\').attr(\'id\');
var vote =          


        
4条回答
  •  有刺的猬
    2021-01-27 13:29

    I think the problem is that you send data as object, try to send as array var thing = {tee: tee, vote: vote}; to array

提交回复
热议问题