Code : Tout sélectionner
session_start();
if (!isset($_GET['page'])!='ticket' && $_GET['page'])
{
//avoid back problem with browser
if(!empty($_POST) OR !empty($_FILES))
{
$_SESSION['bkp_post'] = $_POST;
if(!empty($_SERVER['QUERY_STRING']))
{
$currentpage .= '?' . $_SERVER['QUERY_STRING'] ;
}
header('Location: ' . $currentpage);
exit;
}
if(isset($_SESSION['bkp_post']))
{
$_POST = $_SESSION['bkp_post'] ;
unset($_SESSION['bkp_post']);
}
}