I have a form that posts to process.php. Process.php send all the data to mysql then returns back to the page using:
<?php header("Location: /campaigns"); ?>
On the page it returns to I want to display a message saying form submitted. Can I post a variable to the Location: /campaigns. And use the variable to display the message (or modal box)? and if so what would be the best way to do it?
There is many ways to do that, but here you got two most popular
1. Using GET
Just add GET variable to your URL that inform that the forum has been submitted successful:
2. Using session variables