Thread: Script problem
View Single Post
Old 07-06-2002, 02:45 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,711
redhead is on a distinguished road
Re: Script problem

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)
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote