Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 25th Jul 2014, 09:40 AM   #1
Warrior Member
 
Join Date: 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default
how to get back to html page after linking to php
Share on: 
fb share twitter share gplus share more share

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?
Ronbo51 is offline  
Unread 25th Jul 2014, 10:01 AM   #2
Active Warrior
War Room Member
 
HJdev's Avatar
 
Join Date: 2013
Location: Netherlands
Posts: 52
Thanks: 10
Thanked 18 Times in 11 Posts
Default
Re: how to get back to html page after linking to php
Share on: 
fb share twitter share gplus share more share

header('Location: http://www.example.com/test.html');
exit;

Discover how my Internet Marketing Tools increase your business efficiency...
HJToolBox.com
HJdev is offline  
Unread 25th Jul 2014, 12:58 PM   #3
Warrior Member
 
Join Date: 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: how to get back to html page after linking to php
Share on: 
fb share twitter share gplus share more share

Thanks a lot HJdev, that worked great.
Ronbo51 is offline  
Unread 27th Jul 2014, 07:24 PM   #4
Warrior Member
 
Join Date: 2012
Posts: 29
Thanks: 0
Thanked 2 Times in 2 Posts
Default
Re: how to get back to html page after linking to php
Share on: 
fb share twitter share gplus share more share

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
webwizdevelop is offline  
Unread 27th Jul 2014, 09:04 PM   #5
Warrior Member
 
Join Date: 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: how to get back to html page after linking to php
Share on: 
fb share twitter share gplus share more share

Thanks WebWiz.
Ronbo51 is offline  
Closed Thread


Bookmarks

Tags
back, html, linking, page, php


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 07:28 AM.