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

What is PEAR?

1 Answers  


How do you set the browser timeout?

3 Answers  


when ever the user logged in the database table the current registered date will be appeared

3 Answers  


difference between clanguage and c++

8 Answers   TCL, IBM,


coding for deleting items form data base on select

1 Answers  






What are the differences between PHP 3 and PHP 4 and PHP 5?

2 Answers  


hi here one small project given to me in an software company during interview. one page that would count down till 9pm (today means every day before 9pm it would count down to zero) this means there will show how many mins. sec. and hours are left till 9pm so it would be like 1 hr 20 mins 23 sec. then it up count down every sec and then show 1hr 20mins 22sec left till 9pm once the count down reaches zero it would show a flesh player video will autostart. the flash player will be from http://www.longtailvideo.com/players/jw-flv-player/ (the player is embed into the page.) that same page will track to see if they have already seen the video using php sessions then if they go back to that page it would redirect them to a new page saying that they have already wathed the video.

1 Answers  


How can we create a database using PHP and mysql?

4 Answers   Rushmore Consultancy,


how can i get USA time using php...

1 Answers  


What are the current versions of apache, PHP, and mysql?

21 Answers  


1.Where are the sessions storing ? 2.What are the contents of a session file ? 3.If the server is loaded with too many session files there is a possibility of server crash. How can we solve this issue? 4. How does php server identify that the particular session belongs to particular user ? For ex: If two users A and B logged from different machine, separate session files (say 1 and 2) will be created in the server. But how the php knows that 1 belongs to A and 2 belongs to B ?

4 Answers   TCS, PA Consulting,


How to increase session life time using PHP?

8 Answers  






Categories