(1) The index. php? Actionsegmentfault: {code ...} (2) Why are there such judgments? {code ...} 1. There is no second method. Can't you write it like this? 2. You can use register_globalOn in php. ini... (1)
The index. php? Action = segmentfault
Determine whether the value parameter is:
If ($ _ POST ['action'] = 'segmentfault ') {// The operation is ........}
(2)
Why are there such judgments:
If ($ action = 'segmentfault ') {// .........}
1. There is no second method. Can't you write it like this?
2. in php. ini, register_global = On can be the second method. What do you think
Reply content:
(1)
The index. php? Action = segmentfault
Determine whether the value parameter is:
If ($ _ POST ['action'] = 'segmentfault ') {// The operation is ........}
(2)
Why are there such judgments:
If ($ action = 'segmentfault ') {// .........}
1. There is no second method. Can't you write it like this?
2. in php. ini, register_global = On can be the second method. What do you think
The first method is wrong. $ _ GET; or $ _ REQUEST (including GET/POST/COOKIE) should be used in query_string)
The second is security, which can easily cause injection. You can use the extract function when you do not enable register_globals.
register_global=On
This method is very old. It was told from the first day of contact with php. Don't start this method. The security risk is very serious after it is enabled.
Request_order affects $ _ REQUEST. I used $ _ POST $ _ GET before.
Correct Solution on the first floor, and register_global will be canceled in future versions