What is deffience betwwen get() , Post , Request()
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Which MySQL function would you use to select a database?
Explain Magento's autoload functionality and how to instantiate classes? What is the process you take when theming a store? Talk about Magento collections and how you use them?
What is use of in_array() function in php?
Can I run php without xampp?
What is mean tnq
What is difference between session_unset and session_destroy?
Why namespace is used in php?
What is the use of explode() function?
How many types of inheritances used in php and how we achieve it.
Suppose we receive a form submitted by a post to subscribe to a newsletter. This form has only one field, an input text field named email. How would we validate whether the field is empty? Print a message "the email cannot be empty" in this case?
How a constant is defined in a php script?
Why does sql injection happen?