Share on Google+Share on Google+

dodhiya imran s
advantages of get method?
2 Answer(s)      5 years and 11 months ago
Posted in : PHP

php in what is advatages of get methods and how you can use get methods.

Ads

View Answers

May 26, 2011 at 11:59 AM


We all are familiar with disadvantages of GET method when compared to POST method. However, there is a real advantage of using GET when you are creating a link that access CGI scripts. It is easy to retrieve as the data is sent as name value pair at the end of the URL. These are then passed to the query string collection, and CGI script can retrieve these values directly. When using POST method, the name value pairs are sent in data file to the standard input in bytes. CGI scripts gets name value pairs from there. The main disadvantage of GET is that there is a limit on data that can be passed.



May 26, 2011 at 12:21 PM


The get method is a SEO friendly method. It makes easier to set up for small, non-secure data. The variables get passed through the URL string, so you don't have to try to attach it to headers or worry about forms.

Request of get method can be bookmarked, can be cached, are faster and have known consequences, so visiting them multiple times is not a problem.

You can find an example from the given link:

http://www.roseindia.net/php/php-Get-Post.shtml










Tutorials   
Java Spring Hibernate Struts Training I am Java programmer. Should I learn Java Script or Python? Delete multiple records with pagination by selecting checkboxes How to add one hour in php date? connection in php connection in php connection in php PHP magento how to make previous and next Button Display Data in php session written exam display database results question create a simple form Magento Strings in PHP Zend Framework Installation in xampp? How to prevent adding duplicate items to the shopping cart php problem maximum execution time of 30 seconds exceeded in php Call-time pass-by-reference has been removed in HTTP_POST_VARS is deprecated $_GET[] index is not defined Function mysql_db_query() is deprecated Function mysql_db_query() is deprecated Function split() is deprecated Fatal error: Call to undefined function session_register() in .php file php tag not working Error reporting in PHP Why are MySQL Routines and Views not used with PHP? How to add Click to copy function to my wordpres blog? connection of php to MySQL. loan calculator Datepicker not getting called through include function of php change url string integrate login in php Installation of wamp server Display PHP clock with user input date and time value in div from php, reloading form pre-populate form developing a system using php n mysql Configure apache Tomcat to work with Eclipse and PDT in php How to display a file for 24 hours? LOGIN ERROR LOGIN FAILED", $_SESSION['login fail']='0',}?> I GOT ERROR FOR MY PROJECT PHP Sending emails and insert into trable Tutorial college Student Admission System PLZ HELP ME. i need php code.

Ads

 
Advertisement null

Ads