hello dear friend.
on my page i have a form with data with submit bouton when user click on insert data insert into a table all work fine i would like to redirect user to other page after insert into the i use this code
$insertGoTo = 'order-line.php';
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
echo $insertGoTo;
}
die ($insertGoTo);
header(sprintf("Location: %".$insertGoTo));
}
on my local server it work fine but on my hosting server the pages is just refresh and and in side this one apear order-line.php?order-line.php?