I have the following case statement which checks the user level variable as follows;
Code: Select all
switch ($i) {
case "1":
header("Location: http://www.somewhere.com");
break;
case "2":
header("Location: http://www.somewhere.com");
break;
case "3":
// User allowed
break;
}All I want is for case 3 to allow the user to access the page that the code is on.
thanks