Serialized data: Pass the value through post, the data disappears, the serialized data is passed through post, and the data disappears
Who knows what's going on?
Reply to discussion (solution)
Are you not used to posting code? Based on Chinese conjecture?
$s = "ssssssssss";
Are you not used to posting code? Based on Chinese conjecture?
A little bit
$ S is serialized
Php code?
Php code?
Yes, it's for PHP. I use form to submit and accept only the serialized length of the data. there is no value.
Template used? Check the source code to see if the value generated by $ s is normal.
Php code: how do you receive it? paste the code.
Yes. use the ECMALL template.
$s = $_POST['s'];echo $s = unserialize(stripslashes($s));
The output is the s: 10:
Template used? Check the source code to see if the value generated by $ s is normal.
Php code: how do you receive it? paste the code.
Posted, the source code does not see any difference
The stripslashes function does not matter. I will try it.
$ _ POST ['s '] value obtained, directly $ s = 'AAA' has no returned value for one-step debugging
There is a conversion function in javascript, and I forgot the name. You need to use it to convert it into serialization. If you cannot remember this function, you can also set the serialized data to base64.
$s = $_POST['s'];echo $s = unserialize(html_entity_decode(stripslashes($s)));
Check whether deserialization is possible.
This post was last edited by xuzuning at 18:20:57
Yes. use the ECMALL template.
$s = $_POST['s'];echo $s = unserialize(stripslashes($s));
The output is the s: 10:
You can't echo $ _ POST ['s ']; check it out?
The serialized string is enclosed in double quotation marks.
You Put it in double quotation marks. Can the browser recognize it?
Yes. use the ECMALL template.
$s = $_POST['s'];echo $s = unserialize(stripslashes($s));
The output is the s: 10:
You can't echo $ _ POST ['s ']; check it out?
The serialized string is enclosed in double quotation marks.
You Put it in double quotation marks. Can the browser recognize it?
Correct