how to get back to html page after linking to php

by 4 replies
5
I have used a PHP/SQL tutorial to make a form and link to a php script which updates a database. Once it runs the script, it just stays there. How do I make it get back to the html page?
#programming #back #html #linking #page #php
  • header('Location: http://www.example.com/test.html');
    exit;
  • Thanks a lot HJdev, that worked great.
  • You can redirect to page using header("Location:page.php") it would be used to redirect but you can also use ? to pass variables and if page is not fix where you want to return you can use HTTP_REFERER to get last page from where this page is visited
    • [1] reply

Next Topics on Trending Feed