Instead of header( "Location: ".$session->referrer ); put the success page in a different variable e.g.
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$good = 'success_page.php';
header("Location: http://$host$uri/$good ");
And if you want to add maybe an error page in a different variable you could do the following:
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$good = 'success_page.php';
$bad = 'denied.php';
header("Location: http://$host$uri/$bad ");
Just a thought
darren2005
Junior Poster in Training
58 posts since Mar 2007
Reputation Points: 10
Solved Threads: 2