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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:29:45+00:00 2026-06-15T17:29:45+00:00

The problem i’m having is i keep on having to delete the cache or

  • 0

The problem i’m having is i keep on having to delete the cache or the form doesn’t submit anything new. For example i typed in new data in the form and submitted and it wasn’t inserted into mysql. I have to delete the cache first.

On submit.php is a form. done.php recieves $_POST variables from submit.php
. At the top of done.php i have session_cache_limiter('private_no_expire');. I have this so when the user presses the back button and returns to done.php, they won’t get the page expired message.

I only added session_cache_limiter('private_no_expire'); to get rid of the page expired message. Is there alternative so when i user presses the back button they don’t get the page expired message?… alternatively how do i solve this?

  • 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-15T17:29:45+00:00Added an answer on June 15, 2026 at 5:29 pm

    One alternative is to send a 301 redirect from the form processor back to submit.php after a failed or successful submission. This will prevent the prompt from appearing when the back button is used. It will skip over the submission process back to whatever page the user was on before that (generally submit.php).

    You’ll have to modify your logic in submit.php to handle this situation though. You wan’t to re-populate the form fields with the user’s previous entries and also be able to display any error message as to why the form didn’t submit.

    One way to handle this is to save all the form submissions and any error messages to the session and upon re-displaying submit.php, check to see if there is any form data in the session. If so, re-populate the form fields with the previous entries from the session and display any error messages from the session as well.

    done.php

    // validate form inputs here...
    
    if (!$formIsValid) {
        // save $_POST values to $_SESSION
        // save any error message to $_SESSION
        header('Location: /submit.php');  // redirect back to form
        exit;
    } else {
        header('Location: /success.php'); // redirect to success page
        exit;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem: to open a new window with the select -option <form onsubmit=return handleSubmit() target=_blank
Problem: I am trying to build a recursive tree using a function and data
Problem occured when i tried to display xml data that has been taken by
Problem statement I'm trying to implement my own virtual keyboard following example softkeyboard, found
PROBLEM : I am having problems getting socket.IO to connect in some circumstances, so
Problem: to find the right data structure for the queue: #include <stdio.h> #include <stdlib.h>
Problem I have an Excel worksheet with a column of text which is data,
Problem occurs when I try to reuse views in ListView having several custom layouts.
Problem description is follows: There are n events for particular day d having start
Problem: Report Templates are created by Admin Users who only decide what data to

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.