PHP Community Marketing Expert Question:

Download Job Interview Questions and Answers PDF

Tell me what is the difference between GET and POST?

PHP Community Marketing Expert Interview Question
PHP Community Marketing Expert Interview Question

Answer:

☛ GET displays the submitted data as part of the URL, during POST this information is not shown as it’s encoded in the request.
☛ GET can handle a maximum of 2048 characters, POST has no such restrictions.
☛ GET allows only ASCII data, POST has no restrictions, binary data are also allowed.
☛ Normally GET is used to retrieve data while POST to insert and update.

Understanding the fundamentals of the HTTP protocol is very important to have a good start as a PHP developer, and the differences between GET and POST are an essential part of it.

Download PHP Community Marketing Expert Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me what's your favorite development language and why? What other features (if any) do you wish you could add to this language?Suppose we receive a form submitted by a post to subscribe to a newsletter. This form has only one field, an input text field named email. How would we validate whether the field is empty? Print a message "The email cannot be empty" in this case?