PHP (Hypertext Preprocessor) is an open source, a server-side scripting language that is used for the web applications development. POST method variables are not displayed in the URL. GET method is visible to everyone (it will be displayed in the browsers address bar) and has limits on the amount of information to send. POST method used when sending passwords or other sensitive information. GET method should not be used when sending passwords or other sensitive information. A safe URL length limit is often 2048 characters but varies by browser and web server. Yes, since form data is in the URL and URL length is restricted. POST is a little safer than GET because the parameters are not stored in browser history or in web server logs. So it’s saved in browser history and server logs in plaintext. GET is less secure compared to POST because data sent is part of the URL. Multipart/form-data or application/x-Safest to use less than 2K of parameters, some servers handle up to 64KĬan send parameters, including uploading files, to the server. The browser usually alerts the user that data will need to be re-submitted. GET requests are re-executed but may not be re-submitted to the server if the HTML is stored in the browser cache. Parameters are not saved in browser history. Parameters remain in browser history because they are part of the URL According to the technical HTML specifications, GET means that form data is to be encoded (by a browser) into a URL while POST means that the form data is to appear within the message body of the HTTP request. The difference between METHOD=”GET” (the default) and METHOD=”POST” is primarily defined in terms of form data encoding. The method is specified inside a FORM element, using the METHOD attribute. In PHP, one can specify two different submission methods for a form.
20) What are different types of errors available in Php ?.19) How to increase the execution time of a PHP script ?.16) What is the difference between = and = operator in PHP ?.
15) What is T_PAAMAYIM_NEKUDOTAYIM in PHP?.
12) What is difference between include,require,include_once and require_once() ?.10) What are PHP Magic Methods/Functions.8) What is default session time and path in PHP.7) Is multiple inheritance supported in PHP ?.5) How to register a variable in PHP session ?.3) What are constructor and destructor in PHP ?.