| | |||||
| ||||||||
| Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms. |
![]() | NamePros Design Contests | Forum Sponsorship |
| Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest) | ||
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Account Closed Join Date: Apr 2005
Posts: 167
![]() | Welcoming Page Load Question Okay. I want a welcoming page that will load with the websites index URL. I only want it to load once so if a person goes back to the site with the same URL later, the welcoming page won't show (unless they delete history/cookies/tempfiles,etc). Does anyone know how I can accomplish this?
Last edited by zack; 08-11-2005 at 02:51 PM.
|
| |
| | #2 (permalink) |
| DNOA Member Join Date: May 2004
Posts: 5,040
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Well, if they accept cookies and don't delete them, set a cookie with PHP. Then, try and detect the cookie. If it's there, then use the PHP header() function to redirect to the actual content (past the welcome page). If you DON'T want to use PHP, Javascript MAYBE able to do this, but they'd have to have JS enabled and history not cleared... and that only lasts about 7 days usually anyways. PHP cookies is your best bet, I think. |
| |
| | #4 (permalink) |
| DNOA Member Join Date: May 2004
Posts: 5,040
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | No problem. Put this at the top of your welcome page (this must be the FIRST thing! Before ANYTHING is sent to the browser): PHP Code: Now, you need to edit that code a bit:
????: NamePros.com http://www.namepros.com/web-design-discussion/114827-welcoming-page-load-question.html Hope that helps |
| |
| | #8 (permalink) |
| Senior Member Join Date: Jun 2005 Location: Planet Mars
Posts: 1,401
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | cooool thanks COMPUXP !
__________________ Solution to Google's Panda Update? - Click here |
| |
| | THREAD STARTER #9 (permalink) |
| Account Closed Join Date: Apr 2005
Posts: 167
![]() | Ok I'm missing something. Check the attatchment for a screenshot of the code. Do I need a .txt file for the php to read? Did I put the code where I shouldn't have? My main page is named "index2.htm" now. THe welcome page is named "index.htm" It still continues to goto the welcome page after one visit. |
| |
| | #12 (permalink) |
| Pro Coder & Designer Join Date: Apr 2005 Location: Netherlands
Posts: 967
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | your testing it on your own server(your own pc ) or with a host ?
__________________ aween web development |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best way to have multiple backgrounds on a page? | Nuttmig | Web Design Discussion | 7 | 02-17-2005 09:40 PM |
| Question about Page Rank | neocoven | Domain Newbies | 4 | 01-02-2005 09:40 AM |
| How to load a different page each time page refreshes? | skuba | Web Design Discussion | 6 | 07-30-2003 10:11 AM |