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

Explain what are the different errors in php?

622


What are the design patterns in php?

601


How to test if a variable is an array?

658


How can we know the total number of elements of Array?

675


Tell me how can we display information of a variable and readable by human with php?

647






Explain scalar type declarations in php7?

625


How to create a web form?

637


What is the best practice for running mysql queries in php? Consider the risk of sql injection.

649


Is php session id unique?

619


How to replace a substring in a given string?

632


Explain what are some new features introduced in php7?

572


What are the options to transfer session ids?

684


What is putenv?

660


What exactly is validating and sanitizing?

697


Explain php parameterized functions.

647