How to hide values in hidden fields?

后端 未结 4 723
借酒劲吻你
借酒劲吻你 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:43

    You can't. If you want to keep something secret from the visitor, don't give it to the visitor's browser.

    Store the data on the server and send a token related to that data to the browser instead. Look the data up using the token when the browser submits it back.

    You could use sessions for this (although beware of race conditions).

提交回复
热议问题