Serialized data: Pass the value in post mode, the data disappears from serialized data, and pass the value in post mode. who knows what is going on? share the serialized data, pass the value through post, and the data disappears
Serialized data, pass the value through post, and the data disappears
Who knows what's going on?
Share:
------ Solution --------------------
Are you not used to posting code? Based on Chinese conjecture?
------ Solution --------------------
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.
------ Solution --------------------
$ _ POST ['s '] value obtained, directly $ s = 'AAA' has no returned value for one-step debugging
------ Solution --------------------
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.
------ Solution --------------------
$s = $_POST['s'];
echo $s = unserialize(html_entity_decode(stripslashes($s)));
Check whether deserialization is possible.
------ Solution --------------------
This post was last edited by xuzuning at 18:20:57
Reference:
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?