Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

PHP welcome message?

make money online
Victor Dub Offline referral

Posts: 946
Joined: Oct 2013
Reputation: 5

Posting Freak
How to create a welcome message with PHP that only shows one time?
postcd Offline referral

Posts: 26
Joined: Feb 2016
Reputation: 0

Junior Member
You would have to somehow identify the visitor and save his details so your php app will not show it if he visit again.

You can save IP address and then check all saved IPs and if found, message will not show.

You can also create cookie in the visitor web browser, but after he clear cache or reinstall browser, cookie will be away. Here you can see the script for cookie based handling: https://stackoverflow.com/questions/8752...time-visit

if want to save IPs instead of cookies, you would google: php save visitor IP into file
and then: php fopen if file contains IP
marcus_avrelius Offline referral

Posts: 2,507
Joined: May 2013
Reputation: 109

Support Team
To prevent message from showing again to same user you need to set Cookie! Then with your PHP function first check for the cookie if not found then show message and set cookie!

Google this topic

User(s) browsing this thread: 1 Guest(s)