Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
php.net/manual/ru/function.header.php
and in your code - tin.
if (isset($_GET['type']) && $GET['type'] === '1') {
header( 'Location: http://host.dom/');
exit;
}
1. if(isset($_GET['type'])) //What you're checking if ($_GET['type']) { if it's null and the get exists it will come out so it doesn't exist
2. I wonder why you === and this is $_GET['type' === '1'], the meaning is not clear
3. Send the browser, or whoever you have there header header('Location: yandex.ru ');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question