This question already has answers here:
Answer
Solution:
actually your error says
Warning: Use of undefined constant
means Test used on line 3 in code mentioned is not defined
either define Test like this
<?php
define("TEST", "key words to match", true); //here true is used for case-insensitive
if(isset($_GET['Keyword'])){
if($_GET['Keyword'] == Test){
header('Location: http://www.anotherURL.com');
exit ();
}
}
?>
or use it as a string
<?php
if(isset($_GET['Keyword'])){
if($_GET['Keyword'] == "Test"){ //qoutes " are necessary for string
header('Location: http://www.anotherURL.com');
exit ();
}
}
?>
Source