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

Answers were Sorted based on User's Feedback



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

Answer / viranjaneyulu.nagasarapu

there methods are same as to reading values from html in php.
1.get():- using get method,u can able to see values what
sending and u can send little bit data only.
2.post():-using post method,u not able to see values what
sending and u can send data as well as files and images
only,it's more secure compare to get and request.
3.request():-using request method ,u can reading values from
useing weather get or post method.

Is This Answer Correct ?    9 Yes 1 No

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

Answer / 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

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

Answer / rabeeshm

using get method is not secure, ur informations will be
appeared in the url address. using post method is much
secure it will not appear in the url address. eg.secure for
using post method in login form.
in other words,
Get-> we can transfer limited data and its not secure.
post-> we can transfer unlimited data. ans its a secure.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More PHP Interview Questions

Explain what does the unset() function means?

0 Answers  


List out different arguments in PHP header function?

4 Answers  


What are the benefits of using php and mysql?

0 Answers  


Which are the best start and end tags to use?

0 Answers  


Which of the following represents the proper way to set a session variable? Answer: a. $_SESSION['foo'] = 'bar'; b. session_start(); c. session_set_save_handler ('myopen', 'myclose', 'myread', 'mywrite', 'mydelete', 'mygarbage'); d. $foo = $_SESSION['foo']; 2.When administering MySQL, you should make the data directory accessible via the operating system 3.which statement can be used to determine how the optimizer resolves a query

9 Answers   Cybercom, TCS,






What is artisan in php?

0 Answers  


Write a program to find the factorial of a number in php?

0 Answers  


How can you send email in php?

0 Answers  


How can we get the error when there is a problem to upload a file?

0 Answers  


i have saved the password in encrypted format in database. now i want how to retrive the password in decrypted format.

6 Answers  


How to register a variable in PHP session?

0 Answers  


Why are sessions used?

0 Answers  


Categories