What is deffience betwwen get() , Post , Request()

Answer Posted / ravi baba zaa

$_GET - It is build in super global array which collect the values from the FORM which has GET method.
Data is transferred with in URL string hence visible. Data transfered limit max. 100 characters.

$_POST - It is build in super global array which collect the values from the FORM which has POST method.
This method is safe as data is not shown in URL. Also there is
no data transfer limit. 8 Mb max size limit can be changed from PHP.ini

$_REQUEST - The $_REQUEST function can be used to collect form data sent with both the GET and POST methods.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is php? Why it is used?

511


Swap two variables value without using third variable in php ?

594


Is php used anymore?

525


In php how can you jump in to and out of "php mode"?

565


How to remove duplicate values from a PHP Array?

545






What is better .net or php?

576


What is mvc in php?

537


What are the differences between mysqli_connect and mysqli_pconnect?

537


What is beforeRender() used?

633


Why does php start with variables?

548


How long is session timeout?

529


How can we calculate the similarity between two strings?

577


How to create an array of a group of items inside an html form?

570


How do sessions work in php?

508


How to redirect a url from http to https in .htaccess?

522