|
Post by hah12374 on Nov 4, 2012 12:42:53 GMT -5
Does anyone know of a good way to refresh a page after the submit button is hit on a form? In my code, the submit button triggers an Insert Into query to put the reply content into the database, but the page has to be refreshed in order for the content to show up in my replies table.
|
|
|
Post by Bob P on Nov 4, 2012 17:12:40 GMT -5
|
|
zjh7
New Member
Posts: 15
|
Post by zjh7 on Nov 4, 2012 23:28:53 GMT -5
I had a workaround involving the GET array, where I would store part of the get array in a session variable and then based on what it was echo is back out as part of the action="" url
|
|
|
Post by fsilvestre on Nov 9, 2012 9:28:48 GMT -5
I'm not sure if you were the one after class, but here's what I had. It works great
if(!$_SESSION['signed_in']) { echo '<META HTTP-EQUIV="Refresh" Content="0; URL=signin.php">'; exit; } else{ //do stuff }
|
|