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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:07:20+00:00 2026-05-23T17:07:20+00:00

a page directs users back to a page automatically <meta http-equiv=refresh content=1; URL=http://localhost/mywebsite/Untitled9.php> when

  • 0

a page directs users back to a page automatically

<meta http-equiv="refresh" content="1; URL=http://localhost/mywebsite/Untitled9.php">

when it reaches ‘Untitled9.php’ i want it to display an alert box saying ‘Message sucessfully posted’
I only want it to display when it id directed back to the page and not when first load
e.g Home – Message page = No alert
Home – message page – submit – redirect to message page = alert ‘post sucessfully posted’

  • 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-23T17:07:20+00:00Added an answer on May 23, 2026 at 5:07 pm

    Can’t control the DOM of a page externally.

    What you could do however is pass a variable in the query string to the page you’re redirecting to like this

    Untitled9.php?message=success

    Then on your new page have

    <?php 
    session_start();
    if ($_GET['message'] == "success" && $_SESSION['revisit'] == "0")
    {
        $_SESSION['revisit'] = "1";
        ?>
        <script type="text/javascript">window.alert('Message successfully posted.');</script>
        <?php
    }
    ?>
    

    In your first page change your code to look like this

    <?php
    session_start();
    $_SESSION['revisit'] = "0";
    ?>
    <meta http-equiv="refresh" content="1; URL=http://localhost/mywebsite/Untitled9.php">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Page A has a meta refresh to redirect to another page, C , after
I have a site that directs a user to a php page, after filling
Page in question: http://phwsinc.com/our-work/one-rincon-hill.asp In IE6-8, when you click the left-most thumbnail in the
Currently users can search a database using php and ajax with the results shown
I'm trying to get a Formmail form to re-direct back to it's own page.
I'm trying to add a search box to my page that will direct users
What's the best way to add dynamic content to a web page after a
Working on a web based buying and selling application with PHP MySQL where users
I have created a list in jquery mobile which directs to some page on
I'm using page-anchors to direct users to particular tabs from a menu. However when

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.