Course Title: Web Development Masterclass
Course Link: http://youaccel.com/admin/cdisplay.ph...
Facebook: / youaccel
Twitter: / youaccel
Website: http://youaccel.com
Tutorial Contents:
Now that we have setup our webpage so it redirects back to the main page, we might want to display a success message, letting the user know the record has been successfully deleted.
To do this we need to pass a variable back to the main page in our URL. Call this variable $message and set the value to delete.
?message=delete
Now back on our delete.php page, we will create an if statement. Inside the if statement we need to check if the variable message is null. We can do this using the ISSET() function and $_GET method.