xProteuSx Posted March 10, 2008 Share Posted March 10, 2008 Is there a way to do the following: Have a link on page1.php that sends a variable to page page2.php which then modifies a DB then automatically goes back to page1.php? I have a small table that requests info from a DB and I want to provide a button that will go to a page with a small script that updates the DB then reloads the original page with the updated table. Is this possible without pausing at page2.php? Quote Link to comment https://forums.phpfreaks.com/topic/95329-link-mysql-refresh/ Share on other sites More sharing options...
The Little Guy Posted March 10, 2008 Share Posted March 10, 2008 on page 2 at the very end have this: <?php header("location: {$_SERVER['HTTP_REFERER']}"); exit; ?> Quote Link to comment https://forums.phpfreaks.com/topic/95329-link-mysql-refresh/#findComment-488268 Share on other sites More sharing options...
xProteuSx Posted March 11, 2008 Author Share Posted March 11, 2008 I will try this out when I get the chance. Thanks. I assume it will work. Quote Link to comment https://forums.phpfreaks.com/topic/95329-link-mysql-refresh/#findComment-489214 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.