| | #1 |
| Warrior Member Join Date: 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
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?
|
| |
| | #2 |
| Active Warrior War Room Member Join Date: 2013 Location: Netherlands
Posts: 52
Thanks: 10
Thanked 18 Times in 11 Posts
|
header('Location: http://www.example.com/test.html'); exit; |
| | |
| |
| | #3 |
| Warrior Member Join Date: 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
Thanks a lot HJdev, that worked great.
|
| |
| | #4 |
| Warrior Member Join Date: 2012
Posts: 29
Thanks: 0
Thanked 2 Times in 2 Posts
|
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
|
| |
| | #5 |
| Warrior Member Join Date: 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
Thanks WebWiz.
|
| |
|
| Bookmarks |
| Tags |
| back, html, linking, page, php |
| |