The serialized data is post-uploaded and the data disappears.

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.