What is the diffrence between GET,POST and REQUEST Method.

Answer Posted / minaz

$_GET retrieves variables from the querystring, or your URL.
$_POST retrieves variables from a POST method, such as
(generally) forms.
$_REQUEST is a merging of $_GET and $_POST where $_POST
overrides $_GET. Good to use $_REQUEST on self refrential
forms for validations.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it difficult to learn php?

531


What is the functionality of md5 function in php?

584


Why do we need abstract class in php?

502


Which cryptographic extension provide generation and verification of digital signatures?

523


What is the use of token in php?

499






Tell me what is the use of the function htmlentities?

513


Explain the ternary conditional operator in php?

598


What is polymorphism in php?

507


What does it mean when it says the csrf token is invalid?

496


Define about declare construct?

601


What is php explain?

504


How we get ip address of client, previous reference page etc?

561


What is the difference between print() and echo()?

573


What is $globals php?

534


Tell us how to redirect a page in php?

537