Made a "little" script that checks if keyword = word.
Form:
HTML Code:
<form action="redirect.php" method="post">
<input name="word" type="text" size="20">
<input type="submit" name="move" value="Go!">
</form>
redirect.php:
PHP Code:
<?php
// Define function to check for X keyword
function checkfor ($word, $url) {
if (strtolower($_POST["word"]) == $word) { // Check if its in code.
header("Location: $url");
die;
}
}
// Add as many pages you want.
// NB! Make sure to include http:// infront.
// And for godness sake, put keywords as lowercase.
checkfor ("home", "http://google.com/");
checkfor ("neti", "http://neti.ee/");
checkfor ("x10hosting", "http://x10hosting.com");
print "Error, no page found!";
die;
?>