what is the difference between GET,POST and REQUEST in php

Answer Posted / mishra ashutosh

GET
data that is send can be seen in the address bar.so not secure.It has a data size limit.
POST
data is not visible to user, and has more size limit then GET

Both GET and POST can be used as method in form tag.
but REQUEST can't be used there.
REQUEST is generally used where we are not sure about the method whether the data are coming thru POST or GET method.
it is used to get the from data only.


Feel free to ask anything regaring php,mysql,js.
mishraa_007@rediffmail.com

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you calculate days between two dates in PHP?

536


What is abstract class in php?

509


What is the meaning of a persistent cookie?

558


Tell me how can we define a variable accessible in functions of a php script?

522


Which framework is best for php development?

488






Write down the code for save an uploaded file using php?

451


What is include in php?

542


What is Type hinting in PHP?

712


How to reset/destroy a cookie?

575


What is mysql in php?

519


What are session variables in php?

523


What is session management php?

530


How to replace a text in a string with another text in php?

516


What is difference Between PHP 5 and 7?

512


How to assigning a new character in a string?

574