php-windows | 2003032
Date: 03/31/03
- Next message: Wade: "Re: [PHP-WIN] Redirect to Home Page"
- Previous message: Wade: "[PHP-WIN] Redirect to Home Page"
- In reply to: Wade: "[PHP-WIN] Redirect to Home Page"
- Next in thread: Wade: "Re: [PHP-WIN] Redirect to Home Page"
- Reply: Wade: "Re: [PHP-WIN] Redirect to Home Page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You can easily do that with JavaScript.
if (document.location.href != "index.html"){
document.location.href = "index.html";
}
My syntax might be screwy (haven't done JavaScript in a while) but you get
the idea.
-Mike
-----Original Message-----
From: Wade [mailto:wade <email protected>]
Sent: Monday, March 31, 2003 6:51 PM
To: php-windows <email protected>
Subject: [PHP-WIN] Redirect to Home Page
03312003 1549 GMT-6
I saw this little script somewhere and now I cannot find it.
Im working on this site. If you happen to bounce into the site from
anywhere but the home page, you are automatically redirected back to the
home page. Can someone help me with this?
Wade
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Wade: "Re: [PHP-WIN] Redirect to Home Page"
- Previous message: Wade: "[PHP-WIN] Redirect to Home Page"
- In reply to: Wade: "[PHP-WIN] Redirect to Home Page"
- Next in thread: Wade: "Re: [PHP-WIN] Redirect to Home Page"
- Reply: Wade: "Re: [PHP-WIN] Redirect to Home Page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

