What are the differences between Get and post methods in
form submitting, give the case where we can use get and we
can use post methods?

Answer Posted / dinesh chandra pant

The difference between Get and Post methods are as follows:
1. By using Post method we can send unlimited data,But it's
not possible in the case of Get. Get support maximum 200
characters or 2 MB data.
2. Get method is not secure as anyone can see it's content
in the URL.It doesn't happen in case of Post method.

examples: When the security is the main aim then we use Post
method e.g. in case of password.
When we have to supply the values through a link then we use
Get Method e.g. in case of tables where we have to get the
records for a specific value.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between php and cakephp?

517


Tell me what does the array operator '===' means?

520


List some features of php that are deprecated in php

496


What are the differences between php3 and php4 and php5? What is the current stable version of php? What advance thing in php7?

611


Write a program to get lcm of two numbers using php?

503






Tell me what is the use of isset() in php?

531


What is isset post?

566


How can you declare a constant variable in php?

562


What are encryption functions in php?

538


What is meant by variable variables in php?

524


Can you convert php to html?

527


How to remove leading and trailing spaces from user input values in php?

532


Can we run php in apache tomcat?

514


What is filter_var?

529


Tell me how to create a text file in php?

542