hidden field in php

后端 未结 3 2080
庸人自扰
庸人自扰 2020-12-20 12:51

For hidden fields, can i use a field of the type

\"/>

an

3条回答
  •  不知归路
    2020-12-20 13:18

    Yes, you can access it through GET and POST (trying this simple task would have made you aware of that).

    Yes, there are other ways, one of the other "preferred" ways is using sessions. When you would want to use hidden over session is kind of touchy, but any GET / POST data is easily manipulated by the end user. A session is a bit more secure given it is saved to a file on the server and it is much harder for the end user to manipulate without access through the program.

提交回复
热议问题