1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Rep Power
    Hi, I'd like to know if there is a way in (PHP) in which you can redirect somone to a certain page as soon a couple of words have loaded on a page.. ex.( 'blahlballblblbl' and at the same time it will redirect to that 'certain' site.

    Can somone please show me how?( in php of course)

  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Ontario, Canada
    Rep Power
    There's 2 ways to do this, and neither include any PHP. The first one is to insert a META Refresh tag, eg:

    <META http-equiv="refresh" content="5;URL=http://www.server.com/newpage.htm"><BR><BR>You will be redirected to so-and-so page in 5 seconds.

    The other way is through Javascript and a setTimeout() call, eg;

    <script language="Javascript">
    setTimeout(5000,'top.location.href = http://www.server.com/newpage.htm');
    </script>You will be redirected in 5 seconds to so-and-so page.

    To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson

Similar Threads

  1. Timed redirection?
    By titanium::core in forum HTML Programming
    Replies: 2
    Last Post: August 20th, 2003, 06:30 AM
  2. Replies: 0
    Last Post: February 14th, 2002, 04:28 AM
  3. automatic redirection
    By php-idiot in forum PHP Development
    Replies: 3
    Last Post: December 13th, 2001, 01:35 AM
  4. automatic redirection based on a value from mysql
    By Schnotz in forum PHP Development
    Replies: 2
    Last Post: June 2nd, 2001, 04:47 PM
  5. automatic url redirection
    By raydenx in forum PHP Development
    Replies: 3
    Last Post: May 14th, 2001, 08:49 PM

IMN logo majestic logo threadwatch logo seochat tools logo