Friday, May 8, 2009

What is d difference between $_GET Variable and $_POST Variable?

Can anyone tell me?

5 comments:

Gaurav said...

$_GET is the array on server side which stores all the information submitted from browser to server via http get methods

$_POST is the array on server side which stores all the information submitted from browser to server via http post methods

Viren said...

bt i m unable to submit long test thru $_GET method..
what shud i do?
I m still stuck..
Plz help me out..

Regards
Viren

Gaurav said...

ok viren..

By http get method you can submit a small amount of less sensitive data, while using post you can submit large amount of sensitive data..

AND UNLIKE GET METHODS IT WONT APPEAR IN YOUR BROWSR'S ADDRESS BAR

So try using post method and to retrieve data use

$_POST['inputname'];

of a form field

Viren said...

thanx gaurav..
it reallly worked..
thanks once again.. :)

Gaurav said...

That's fine !

Waiting for more questions !!!!