Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8007233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:45:37+00:00 2026-06-04T17:45:37+00:00

I am having a very hard time understanding the exact process of post/redirect/get. I

  • 0

I am having a very hard time understanding the exact process of “post/redirect/get”.

I have combed through this site and the web for several hours and cannot find anything other than “here’s the concept”.

How to understand the post/redirect/get pattern?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:45:39+00:00Added an answer on June 4, 2026 at 5:45 pm

    As you may know from your research, POST-redirect-GET looks like this:

    • The client gets a page with a form.
    • The form POSTs to the server.
    • The server performs the action, and then redirects to another page.
    • The client follows the redirect.

    For example, say we have this structure of the website:

    • /posts (shows a list of posts and a link to “add post”)
      • /<id> (view a particular post)
      • /create (if requested with the GET method, returns a form posting to itself; if it’s a POST request, creates the post and redirects to the /<id> endpoint)

    /posts itself isn’t really relevant to this particular pattern, so I’ll leave it out.

    /posts/<id> might be implemented like this:

    • Find the post with that ID in the database.
    • Render a template with the content of that post.

    /posts/create might be implemented like this:

    • If the request is a GET request:
      • Show an empty form with the target set to itself and the method set to POST.
    • If the request is a POST request:
      • Validate the fields.
      • If there are invalid fields, show the form again with errors indicated.
      • Otherwise, if all fields are valid:
        • Add the post to the database.
        • Redirect to /posts/<id> (where <id> is returned from the call to the database)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a very hard time understanding the jQuery Form Plugin. I've read through
Ok, I have been having a VERY hard time figuring this out. I guess
I'm having a very hard time wrapping my head around this problem (it might
I'm very new to mac development and I have a hard time understanding how
I'm having a very hard time understanding how to setup an object that allows
I'm having a hard time describing this and it's very possible that I am
I am very new to XSLT and I am having a hard time understanding
This is my first time using ICU API, and I'm having a very hard
I have been having a hard time understanding how to use a singleton to
I've been having a very hard time finding good examples of UIScrollView. Even Apple's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.