PHP Redirect with Post Data
Hi,
I am a newbie PHP programmer and trying to code a small blog.
I will explain what I am trying to do.
- page1.php: Has a table of all posts in the blog
- page2.php: This page has a form where you can add a Post
Page 2 posts to itself and then processes the data, if it successful then uses header() to redirect back to page1 which shows the table.
Now what I want to do is to be able to have a small message on page 1 above the table saying your blog post has been successfully submitted but I’m not sure how I can pass data back to page 1 after the form processing.