Serialized data, pass the value through post, and the data disappears

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

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.