how to pass a value to php variable by ajax

前端 未结 4 2065
花落未央
花落未央 2021-01-25 05:40

this is my javascript code :

function  category(row){
    dataparam = \"oper=delete&row=\"+row;
    $.ajax({
        type: \"POST\",
        url: \"multiuplo         


        
4条回答
  •  没有蜡笔的小新
    2021-01-25 06:09

    In your dataparam variable you have "oper=delete&row="+row; and in the PHP code you test for $_REQUEST['opers']), since oper <> opers, the failure is perfectly normal, just add or remove the s somewhere.

提交回复
热议问题