Software, your way.
burger menu icon
WillMaster

WillMasterBlog > HTML

FREE! Coding tips, tricks, and treasures.

Possibilities weekly ezine

Get the weekly email website developers read:

 

Your email address

name@example.com
YES! Send Possibilities every week!

Methods GET and POST

Methods GET and POST both refer to how the browser sends information to the destination web page (or software).

The URL in the browser's address bar is the destination. (There may be redirects or other operations that occur and change the destination, but those are out of the scope of this article.)

Links that are clicked to go to a web page are method GET. When information is sent to the web page being linked to, it can be sent as part of the URL. The information is appended to the URL with a "?" character.

Here is a URL with information appended to the URL.

http://example.com/page.php?name=will&state=awake

In the above illustration, "name=will&state=awake" is the information appended to the URL. That is method GET.

When the browser reaches the server with method GET, the information is recorded in the server logs.

Forms usually employ method POST to send the form information with the browser as it travels to the receiving web page or software.

Here is an example form that can be copied to submit method POST. If this were a working form then when the button was tapped the form information would travel to http://example.com/page.php as method POST. (The example form is followed by the source code for the form.)

Name:
<form metod="post" action="http://example.com/page.php">
Name: <input style="width:200px;">
<br><input type="button" style="width:calc(200px + 4.7em);" value="Submit" onclick="alert('Example form, not for use.'); return false;">
</form>

Method POST information cannot be seen by the person using the browser. It travels with the browser behind the scenes, so to speak.

No illustration can be provided for you because the POST information is not visible.

When the browser reaches the server with method POST, the information is not recorded in the server logs.

Another difference between the two is that the amount of information generally is limited to a kilobyte with method GET and several or many megabytes with method POST. The limit for both methods is determined by the server at the browser's destination.

Will Bontrager

Was this blog post helpful to you?
(anonymous form)

Support This Website

Some of our support is from people like you who see the value of all that's offered for FREE at this website.

"Yes, let me contribute."

Amount (USD):

Tap to Choose
Contribution
Method


All information in WillMaster Blog articles is presented AS-IS.

We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.

Recent Articles in the Library

Redirect With Method POST

When you can't use method POST, but you must, read this.

Gradient-colored Text

The information you need to make color-gradient text.

The HTML Q Tag

Create a style then use the HTML q tag to apply the style. This is about as easy as it gets for attracting attention to quotes.

Plain Text To HTML Converter

Here is a function to convert plain text from a form textarea field into HTML for publishing on a web page or in an email.

HTML for Meme Making

No fancy image creation software is needed to make memes. An easy way is to create a web page with text over an image or color background and screenshot it.

Image Color Saturation

The CSS filter:saturate() declaration can be used to lesson color saturation and to intensify color saturation of images.

PDF to Text Conversion

If you can use a PDF to text converter and your website is on a Linux machine, this one should do you well.

How Can We Help You? balloons
How Can We Help You?
bullet Custom Programming
bullet Ready-Made Software
bullet Technical Support
bullet Possibilities Newsletter
bullet Website "How-To" Info
bullet Useful Information List

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2025 Will Bontrager Software LLC