I use a query string, for example test.php?var=1.
test.php?var=1
How can I check if a user types anything after that, like another string...
I try to redirect
Look in $_SERVER['QUERY_STRING'].
$_SERVER['QUERY_STRING']