Results 1 to 3 of 3

Thread: simple(?) header() question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Location
    Canada
    Posts
    75

    simple(?) header() question

    i understand how to redirect the location for people using header() but what i'm not too sure of, is....


    is there a way i can set it to do this after 5, 10, 15...x number of seconds? I imagine there's a way to do it....

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    If you want a delay, it'd be better to use a META refresh tag.

    It sounds like you want to show a message and have it redirect after a few seconds. However, this wont work since you can't use header() after output has been sent to the browser.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    Addicted Member Martin Wilson's Avatar
    Join Date
    Mar 2002
    Location
    :)
    Posts
    236
    Something like:

    <meta http-equiv="refresh" content="5;URL=http://www.google.com">
    What is the answer to this question?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width