Code: Select all
$_SESSION['referer'] = $_SERVER['SCRIPT_NAME'];stop people clicking urls like /process.php
which would cause the process to run when accessed so i decided to put this in my process page :
Code: Select all
if (isset($_POST['SellHouse']) && $_SESSION['referer'] == 'estateagents.php'){
do code}else{
header("location: estateagents.php");
}but it is not working .. it just headers every time rather than doing the code..