Is it possible to determine whether the redirect was without recording the session, etc.? Type as POST request:
if(isset($_POST['post'])) { echo 'запрос выполнен'; } else { echo 'запрос не выполнен'; }
Is it possible to determine whether the redirect was without recording the session, etc.? Type as POST request:
if(isset($_POST['post'])) { echo 'запрос выполнен'; } else { echo 'запрос не выполнен'; }
You can try this: index.php:
header('Location:test.php?ref=1');
test.php:
if ((isset($_GET['ref']) && ($_GET['ref']=='1')){ echo 'Redirect from index.php'; } else { echo 'Without redirect'; }
If you follow the link, you can see the value of $ _SERVER ['HTTP_REFERER'].
Source: https://ru.stackoverflow.com/questions/40454/
All Articles