Php landing page thing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
audioslave
Forum Newbie
Posts: 1
Joined: Mon Oct 04, 2010 8:31 am

Php landing page thing

Post by audioslave »

hi all :)

here is what i want to do...

when a user enters this page in my site, i want the user to first see this page which will have a notice and a button to accept. when the user accepts, the page will forward the user to the original page he or she intended to go. and by the use of cookies or ip address, the page can identify if its a returning user and will he or she will not see that page if its the second time.

any help on how to do this? are there scripts available, if so what kind of page is this called. i don't know so i used the term 'landing page'

thanks :)
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Php landing page thing

Post by social_experiment »

For the landing page you would use a html form. Once the conditions are met on that page, write the information (cookies & ip) so that the user is identified for future visits and redirect the user. IP and cookies won't (always) guarantee that returning visitors are redirected because some ip's are dynamic and cookies are often removed or not enabled.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply