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

  • Home
  • SEARCH
  • 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 693813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:47:32+00:00 2026-05-14T02:47:32+00:00

i have create a form (so it’s PHP and HTML hybrid-code). it has ability

  • 0

i have create a form (so it’s PHP and HTML hybrid-code). it has ability to send ‘$_POST’. And when i click it, it work perfectly on sending and displaying input.

But there’s something happening when i click Ctrl+R in firefox for represhing the page. I got this confim dialog : “To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier“

my question

  1. what is it, (this confirm dialog ?)
  2. what i have to do on my code so it able to suppress this dialog ?
  • 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-05-14T02:47:32+00:00Added an answer on May 14, 2026 at 2:47 am

    You probably have created an HTML page that contains a <form>. The form is used to send data to the HTTP server (that is, the webserver that hosts your site).

    The HTTP protocol defines different request types used to send data to the server and to retrieve data from the server. The most used are GET and POST. You must learn about all this if you want to be anything more than a very bad PHP programmer, which is unfortunately (or fortunately, if you are on the hacker side) very common.

    Your problem is that Firefox has arrived on the page you are talking about after sending a POST request. If you reload the page, it has to send the same data again in the form of a POST. Due to the conventions on what a POST request should be used for (usually to modify data on a database), the browser asks the user if he is sure about what he wants to do.

    There are mainly two options to circumvent this:

    1. Change the form method to GET; or
    2. Use a redirection after the POST.

    To use the first method, you could simply add a method="get" parameter to your form tag:

    <form action="senddata.php" method="get"> ... </form>
    

    To use the second method, you simply redirect the user after the POST request, using something like

    header("Location: blahblahblah")
    

    The most used pattern is the POST-Redirect, that is, the second method I told you about. There are many security implications on using GET to change data on a database (if you are interested on that, and you should be, as every PHP programmer should, read about XSRF).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a namespaced controller for some admin functionality. My create form does not
I have a table of the form CREATE TABLE data { pk INT PRIMARY
Is it possible to create a form on Windows using Ruby? I have a
I have to create a form capable of displaying a cinema-hall (don't know the
I Have Make a Create Form. & I want the Values in Controller how
Ok so I have to create a form that takes the contents of a
i have a table called horse, i would like to create a form to
i have a table called horse, i would like to create a form to
Right now I have an asp:Wizard with 3 Steps. Create User Form to Email
I want to globalize my application. I have created a small form which asks

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.