In this small article, I am going to show you guys how to show an alert box in PHP website or a webpage.
Let's get into the code right away.
In the example above, as you see I am just declaring a variable and storing the message I want to display. You can make this variable dynamic and get user input and then display an alert according to the user input as well, it will just require few more lines of code, which I will cover in future articles.
alert box pop up