Discuss Signal word [erase itself message] in the PHP Development forum on Dev Shed. Signal word [erase itself message] PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
Posts: 3
Time spent in forums: 34 m 8 sec
Reputation Power: 0
Other - Signal word [erase itself message]
how can it be done "signal word" example: Click on the icon and it shows all over 10 minutes that a user has clicked on the icon "signal" and then erase itself or disappear alone?
text is an example: forum_username pressed the button
and after 10 minutes, this message disappears
very important function is that for me, I will be very grateful if someone help ме
Posts: 2,234
Time spent in forums: 2 Weeks 1 Day 10 h 37 m 38 sec
Reputation Power: 201
well one way would be:
1. when user clicks the button
2. store a session['time']
3. display the message
4. on each page refresh/navigation to other page, check session_time is < 10 minute and if so display the message
5. if it is > 10 minute then unset session
6. if user clicks button again, reset this session
Posts: 3
Time spent in forums: 34 m 8 sec
Reputation Power: 0
in this forum, I never received help with my old nickname, and new, only giving excuses and links, and no help, Again, all talk and no help on the matter in issue, is now pointless to open a new thread in the forum here support does not work, just write crap
Posts: 9,804
Time spent in forums: 2 Months 3 Weeks 17 h 28 m 53 sec
Reputation Power: 6112
Yo're confusing "help" with "do it for me." Do some work to help yourself, don't just describe a problem and then sit back and wait for a solution to be handed to you.
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002