I have a submit form and while submitting the form it will load a php for the process like insert to DB and all.For going back to the submit form I added
header("location:javascript://history.go(-1)");
But how to reload the page (the submit form page so user can see the submitted form details)
try redirecting to previous page redirectin will cause the browser to make a new http request refreshing the page content to get the previous page address you can use HTTP_REFERER
$previousPage = $_SERVER["HTTP_REFERER"];
header('Location: '.$previousPage);
this will cause the browser to re-navigate to the previous page