When creating an HTML form, in what cases should the form use the GET method and it what cases should the POST method be used. This is a simple question to explain the options of using the two depending on how the form and the information will be handled and how it would help to use one of them.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Had this question recently myself. Best description I found of the differences was here:
http://www.w3schools.com/tags/ref_httpmethods.asp
回答2:
Well, I am noob, but I can say that allways use the $_GET['']
global when information sent to server is not of any security risk. ex: You can not send a password through the URL, on the other hand, you should always use POST for submitting a sensitive data