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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:16:05+00:00 2026-06-15T10:16:05+00:00

Possible Duplicate: I am confused about PHP Post/Redirect/Get I have a form on a

  • 0

Possible Duplicate:
I am confused about PHP Post/Redirect/Get

I have a form on a page, so I get the “this page has used data, are you sure you want to refresh” message when I reload the page.

I looked into the HTTP-303 response code, which gets rid of the message (I’m on Chrome btw) until I submit the form once, and then it starts bugging me again.

Basically, I have an optional “contact me” form, that shouldn’t throw a prompt if the page is refreshed. I don’t think/see why I should need a separate page for submission for a short form like this. Can anyone help me out?

  • 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-15T10:16:06+00:00Added an answer on June 15, 2026 at 10:16 am

    Your best option is to use Ajax. That way you don’t need to reload.
    I usually use it with JQuery.
    So you end up with something like:

    function send_message(vMessage,vWho) {
        $.ajax({
            url:"messageSender.php",
            data:{message:vMessage,from:vWho},
            type:"POST",
            success:function(result) {
                // DO SOMETHING HERE, LIKE AN ALERT
            }
        });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Property Declaration and Automatic Backing Storage Allocation I'm really confused about this
Possible Duplicate: Confused about C macro expansion and integer arithmetic A riddle (in C)
Possible Duplicate: alloc, init, and new in Objective-C I am a little confused about
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: “Least Astonishment” in Python: The Mutable Default Argument I'm very confused about
Possible Duplicate: What underlies this JavaScript idiom: var self = this? I am confused
Possible Duplicate: PHP htmlentities() not working as expected I'm confused as to why it
Possible Duplicate: Is PHP compiled or interpreted? I am little confused with the words
Possible Duplicate: Use of 'prototype' vs. 'this' in Javascript? I am confused with these
Possible Duplicate: Reference - What does this symbol mean in PHP? Sorry for being

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.