...

/

Using Flash Messages Everywhere

Using Flash Messages Everywhere

Let's look at how we can add a flash message on any page we want.

Creating a new flash message script

Due to the nature of these messages “flashing” in front of the user and then disappearing, these messages are called flash messages. It is a handy feature that we want to have on pretty much every page. Wherever we add a flash message to the $_SESSION variable, and wherever the browser gets redirected to, we should always see the message on that page. In ...

Access this course and 1400+ top-rated courses and projects.