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.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
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 dataHad this question recently myself. Best description I found of the differences was here:
http://www.w3schools.com/tags/ref_httpmethods.asp