Difference Between $_GET[] And $_POST[] : Brief Description


Both $_GET[] and $_POST[] are methods for sending HTTP requests, with or without forms.

  1. $_GET[] is method for querying data, basically any operation that doesn't cause changes on the server (like a search).
  2. $_POST[] is the opposite (like user registration, Posting comments on an article, etc...) Although the article is correct when saying that passwords should never be sent using $_GET[].
  3. $_GET[] IS NOT more secure than $_POST[], this is a very dangerous misconception.
  4. Also, the whole "$_GET[] is faster" thing is pointless, irrelevant and can lead to additional mistakes.
  5. Both methods are transparent.
  6. The only difference is that $_GET[] shows in the URL, but you can easily view $_POST[] data using tools such as Firebug or many others.
  7. Aside from that, both $_POST[] and $_GET[] requests can be exploited using widget.
  8. They are both communication methods, not intended to be more or less secure.
  9. It's our duty as programmers to validate, filter and apply security measures to ALL user input, no matter which method was used to send them.
  10. [Contribution : Er Galvão Abbott ] But we all already know this; no one is secure on internet.
  11. Anyone can track you, can try to hack you and your data. Some times it can be great lost of yours. So in development, we need to learn some methods and styles, which we can use for our safety.
  12. $_GET[] processing is fast than $_POST[] processing.
  13. Yes it is very little difference but we can not decline it. In $_GET[] Parameters are saved in browser history because of its URL part and but in $_POST[] Parameters never saved.
  14. In $_GET[] URLs can not bookmarked and saved but in $_POST[] you are not able to bookmark or save them.
Note : Don't $_GET[] Method, if you need to send important information like password, important information etc. try to use $_POST[] method in this time.
In $_GET[] you can use maximum 7607 characters easily, but in $_POST[] you can use 8 MB Maximum size. It is awesome limit.
Examples of $_GET[] Method :
http://www.qwc.me/index.php?FName=Samee+Ullah&LName=Feroz&Number=3234223945
Anyone can track you easily by it
Example of $_POST[] Method:
http://www.qwc.me/index.php
It is good for your security. and It is mostly used for SEO purpose.

Post a Comment

Give your reviews about this blog. Leave your comments. What do you think about this post?

Comments Guidelines:

1) I love to read comments, but please avoid spam.

2) Like this blog, share your insights, and spread the word.

3) You can use basic HTML/xHTML tags.

4) All comments are DoFollow—please use the section professionally.

5) Kindly mention your name or brand below your comment.

6) Constructive suggestions for improvement are always welcome.


Thanks for visiting Samee Articles.

========================================

Best Regards,

Samee U. Feroz

 
Copyright © 2011-2026. Samee Articles - All Rights Reserved
Proudly powered by Blogger