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?

Sharad Jaiswal
Written by Sharad Jaiswal

Posted On: Sep 12, 2018

 

    1 Answer Written

  •  Sharad Jaiswal
    Posted by ROSHAN RAJ

    Few difference between GET and POST HTTP Methods

    • GET method used for less data up to 2K and GET method passes the data via the URL parameters and
      data is visible to everyone in the URL.
    • POST method passes data via HTTP POST method and data is not visible to anyone because data send with embedded form. Also POST method used for more data as default size to be sent is 8MB but it could be increase by the change of value of parameter post_max_size in php.ini configuration file.

Please Login or Register to leave a response.

Related Questions

Core PHP Interview Questions

What is T_PAAMAYIM_NEKUDOTAYIM ?

T_PAAMAYIM_NEKUDOTAYIM is scope resolution operator used as :: (double colon) .Basically, it used to call static methods/variables of a Class...

Core PHP Interview Questions

What is the difference between == and === operator in PHP ?

In PHP == is equal operator and returns TRUE if $a is equal to $b after type juggling and === is Identical operator and return TRUE if $a is equal to $b, and they are of the same data type...

Ask a Question