How to hide values in hidden fields?

后端 未结 4 725
借酒劲吻你
借酒劲吻你 2020-12-20 09:35

I have a simple form in which I have 3 hidden fields, through which I am passing values to another page.

But I don\'t want anyone to see it through view page so

4条回答
  •  天涯浪人
    2020-12-20 09:54

    As already said, $_SESSIONis the way to go.
    If you can't, there ARE ways to protect hidden fields, with a certain amount of security.
    The solution is
    1. encoding the data and sending the encoded data and the hash,
    2. validate if the data has been changed on the 2nd page and de-code it there.

    If you are interested, leave a comment and I'll provide some examples.

提交回复
热议问题