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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:18:42+00:00 2026-05-23T00:18:42+00:00

I am designing an image file upload page for a website and, on Submit,

  • 0

I am designing an image file upload page for a website and, on Submit, the script echoes an ‘Upload Successful’ message. That all works fine.

My problem is that once the success message is on the page, it won’t go away! If the user wants to upload another file, I want him to be able to refresh the page and get rid of the echoed message. I can’t understand why that doesn’t happen by default but can anyone explain how I make that happen?

Mike

  • 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-23T00:18:43+00:00Added an answer on May 23, 2026 at 12:18 am

    2 ways I can think of doing what you want.

    First, put a link back to the upload script underneath your upload successful text.

    echo '<h3>Upload Successful</h3>';
    echo '<a href="upload_script.php">Upload another file</a>';
    

    The second way involves sending a refresh header which will redirect to the upload page after a few seconds.

    header( "refresh:3;url=upload_script.php" );
    echo '<h3>Upload Successful</h3>';
    

    This will redirect to the upload page after 3 seconds. header() must be called before your script outputs (echo) anything to the page.

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

Sidebar

Related Questions

I'm designing a single page website. All the sections to the site pop up
I'm trying to add a file upload script in php to a website I'm
I am designing a web application that does server side image processing in real
I am designing a website, I am creating some images for that website by
I'm designing a website that is going to have multiple nested divs for the
I'm designing an app that splits an image into a 3 x 3 grid.
I am designing my first website. I have designed a button image in gimp
I am designing a website and need to re size large image into a
Im designing a website, and often I need to present information in a nice
Im designing my school's website and I kind of want to do like a

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.