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 7087031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:37:25+00:00 2026-05-28T07:37:25+00:00

I have noticed the following with my page thePage.php. My page thePage.php has a

  • 0

I have noticed the following with my page “thePage.php”. My page thePage.php has a form on it where the user can enter their name and email and click a submit button.

1) If I arrive at thePage.php due to a user clicking a link from a different page, thePage.php is called from the server.
Here is the html that has the link that, when clicked on, retrieves thePage.php from the server and displays it in the browser:

<div>
    <a id="logged-in-status" hef="http://mySite/thePage.php"> Click to go to the data entry page</a>      
</div>

After thePage appears in the browser, having been retrieved from the server, I can click the browser ‘reload’ button and I get a page reload from the server and nothing else.

The above div appears on my index.php landing page. When the user clicks the above link, thePage.php is requested from the server and displayed in the browser. thePage.php has an ‘enter name and email’ form on it. After thePage.php loads — with the blank, not-yet-filled-out-or-submitted form on it — if I click the ‘reload’ button in the browser the page simply reloads. No message box warning ‘about to re-send info’ appears — just a page reload.

2) HOWEVER — if the user does or does not enter any form data (doesn’t matter) then pushes the ‘submit’ button — after this first submit of the form, the reload behavior in (1) above is lost. Even if the form is left blank and the user presses ‘submit’ the browser seems to set a ‘dirty bit’ internally — so that when the browser reload button is clicked, the browser seems to say “Oh look — there is apparently a form on this page — and it has been submitted at least once — I’m going to ignore the outcome of that form submission, and from now on — since the form has been submitted once — I’m no longer going simply reload the page. I’ll display a message box about ‘re-sending previously submitted info'”

Here’s what I want to do. I want to clear that ‘dirty bit’ that the browser sets internally so that, even if a form on a page was submitted — I want the browser to go back to behaving as in (1) above, as if I had just clicked a link on another page that led me to thePage so that the browser ‘forgets’ that a form on the page was submitted.

There must be a way to do this. If you think about it — if a link to thePage.php is clicked from elsewhere, the ‘dirty bit’ gets cleared and thePage reload behavior is as in (1) above, without the ‘re-send info’ message box in (2) above.

Is there a programmatic way to tell the browser “look — pretend I just got here from an off-page link to thePage.php, okay? Just forget all prior form submissions on this page. Thank you very much.”

  • 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-28T07:37:26+00:00Added an answer on May 28, 2026 at 7:37 am

    Once you have parsed the form data in the php script then just use header() to send them back to the page instead. This will prevent the resend data notice.

    <?php
    ////Parse form
    header("Location: http://Wherever");
    exit();
    ?>
    

    If you need to know the form was submitted successfully/unsuccessfully just send with a $_GET and pick that up.

    ?php
    ////Parse form
    header("Location: http://Wherever?notice=successful");
    exit();
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple email form: <form method=post action=process-form.php id=emailForm name=emailForm target=_self> <h4>Sign up
I have the following in my htaccess so i can access the page as
I have the following snippet in a page running under PHP 5.4.10 (notice the
I am using the embedded version of jetty. I have noticed the following: in
I have the following sample code and noticed that if I attempt to use
I have following simple code: <%@ Page Language=C# AutoEventWireup=true CodeBehind=testForm.aspx.cs Inherits=Orbs.testForm %> <html> <body>
I have a PHP website with a custom page routing system. A php script
I have the following code: <?php if ($foo) { echo $foo; } ?> However,
I've got the following link in my page, <a href=#dialog name=delete data-id=75351 id=delete-75351 >Delete</a>
I am following the instructions on this page to create a PHP script which

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.