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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:20:01+00:00 2026-06-14T04:20:01+00:00

i’m novice in php and already searched the forum for this and found something

  • 0

i’m novice in php and already searched the forum for this and found something similar although i don’t understand it

i have 2 external links http://www.hello.com and http://www.bye.com

on click on each link, i want to load an intermediate page (eg: redirect.php) for 5 second with a

message: “You are leaving misite.com. goodbye.”

and then, make the correct to the correct external link that applies in each case.

i need:

1.- content of redirect.php

  <a href="<?php $hello.com = $_GET['link']; ?>">Continue to external link</a>
  <a href="<?php $link = $_GET['link']; ?>">Continue to external link</a>

i’m sure it’s wrong.
also, i don’t know how to put a 5 seconds spinner (gif) an then make the redirection (step3)

2.- link users click on it. is it ok?
i have:

  <a href="http://redirect.php?link=hello.com" title="hello">hello</a>

not sure if it’s correct
the link the users hit, tries to call the link in the redirect page, but i’m unable

well, the thing i don’t know how to make it work and i really aprecciate an example
thanks

  • 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-14T04:20:03+00:00Added an answer on June 14, 2026 at 4:20 am

    You should make your link to redirect.php, and add the “final destination” as a URL parameter, as you have already done. On redirect.php, use a meta tag in the head section that redirects (see here for an example).

    EDIT: Code requested…

    In your main php page, have your links as you already wrote:

    <a href="http://redirect.php?link=hello.com">Hello</a>
    <a href="http://redirect.php?link=goodbye.com">Goodbye</a>
    

    In redirect.php, you need to add a meta tag in the <head>...</head> section of your HTML:

    <html>
        <head>
            ...
            <meta http-equiv="refresh" content="5;url=<?php echo $_GET['link'];?>" />
            ...
        </head>
        <body>
            <h1>You are leaving my site!</h1>
            <img src="/images/spinner.gif" alt="spinner" />
        </body>
    </html>
    

    and that’s it. The meta tag “content” attribute contains the number of seconds before redirecting, and the address to redirect to.

    Hope this helps.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
This could be a duplicate question, but I have no idea what search terms
I don't have much knowledge about the IPv6 protocol, so sorry if the question
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

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.