January 23, 201016 yr I am looking for a tutorial for a an Announcement style app. I am using php and MySql and am guessing that I will need to use Javascript or MooTools or something similar. I would like a div that displays a message when a user logs in, however the message will disappear when they click the x icon. No further messages will be displayed until I add a new one into the database. I have tried googling, but don't know what this type of app/script woiuld be called. Could somebody point me in the right direction please?
January 23, 201016 yr I wouldn't use Javascript. I would use PHP, so when they click on the close link it loads a script to create a cookie. Then the page with the announcement can check if the cookie exists or not, if it does, don't show the announcement, otherwise do. You could use a MYSQL database but cookies are adequate. If you don't want the page to reload you'll need to use Ajax. Although you should be able to create cookies with basic Javascript.
Create an account or sign in to comment