Hi All, I need to be able to update a page on my site e.g. news.php from a form called admin.php and would love your advice
I have the form created at admin.php that basically has 3 text areas. When the form is submitted the POST goes to news.php and within news.php I catch and echo the 3 variables e.g. $paragraph1= $_POST['paragraph1']; and echo $paragraph1
This works perfectly. However, when I refresh the news.php page again after the submit, the variables (i.e. my text from the form I submitted) resets, as if nothing was submitted at all. Can anyone advise me here on what I am doing wrong. I think perhaps I should be using something other than POST to catch? Should I be using a server or global variable so that if anyone submits the form, the variables remain on the news.php page for good until the form is re-submitted