js passes multiple values ​​to php
YOSIN_L
YOSIN_L 2018-06-14 22:17:24
0
1
1178

I just learned PHP, and then I saw that a value passed is
function doDel(id) {
if(confirm('Confirm deletion?')) {
window.location='action.php? action=mdel&w_id=' id;
}
}
I want to pass two. Can you change it based on this (I made it up below, it is wrong)
function up(id, p_id){
if(confirm('Confirmation completed?')) {
window.location='action.php?action=mcom&w_id=' id '&p_id=' p_id;
}
}

YOSIN_L
YOSIN_L

reply all(1)
无忌哥哥

It is possible to pass multiple values, but you have to bind the value you want to pass in the click event.

  • reply Yeah, thank you. I found out that I wrote something wrong in another PHP file. No wonder I couldn’t receive the value.
    YOSIN_L author 2018-06-15 09:36:07
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template