Is there a way to do an include to run a script and then a refresh after the script is ran so that the code will run but the same page will load....
also can this be done using a href link instead of a form method?
I have a word link on messages.php :
Delete
and i want it to include the:
delete.php
then refresh the page back to the messages.php, with the new changes that the include had done..
is this possible? Or would the href link need to be on a form like submit buttons are etc?
Include with a refresh
Moderator: General Moderators
Submit a form (or link, too) to a processing script, redirect back to the original page with header()
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
Code: Select all
<?php
if(isset($_GET['do']) && $_GET['do']==true){
include("include.php");
header("Location: http://site.com/page.php");
exit();
}http://site.com/page.php?do=true