是否可以从url链接中提取对象值?

I want to extract object values instead of url parameter using PHP. This is my link http://reussis.com/match-betting/admin2/edit_withdrawal_request.php?id=[object%20Object].

php code

print_r($_GET['id']);

When i print i didn't get any values why? Is it foolish question please neglect. Thanks!

You cannot pass JavaScript objects directly over HTTP, because HTTP is not JavaScript.

Serialise it by JSON.stringify() on your object, then pass it as an encodeURIComponent()'d URL string.

For example:

let myObject = {'javascript': 1, 'isNumberOne': true};
// Serialises the object into a string, then urlencode it
encodeURIComponent(JSON.stringify(myObject)); // "%7B%22javascript%22%3A1%2C%22isNumberOne%22%3Atrue%7D"

use POST method instead of GET. GET method is an old style and it is prone to the hackers. Try to reconstruct your program now! Good Luck.