Simple case statement question
Posted: Thu Jan 12, 2006 6:12 am
Hi,
I have the following case statement which checks the user level variable as follows;
I would like case 3 to give the user access without outputting anything. Will this automatically let them in, or do I need some code to do something. I know this sounds like a stupid question but I cant quite get my head round what to do here.
All I want is for case 3 to allow the user to access the page that the code is on.
thanks
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