Quote:
Originally posted by Geetazz
Can someone please tell me what is wrong with this:
break;
default:
include("login_form.inc");
|
I'm guessing this is php, since you use include(""), but from this small part of the code I can't determain why this will fail. But I'm just guessing here..
If you have your switch statement, then you reach the deafult match, and includes this
login_form.inc (which most likely is holding a login form of some sort)
And you missed the
break; after it, so now you have a switch statement, that ends in including the code from another file, and never escapes the switch scope.
(Just guessing here, from those three lines)