Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 07-05-2002, 06:42 PM   #1 (permalink)
Geetazz
Registered User
 
Join Date: Jun 2002
Posts: 12
Geetazz is on a distinguished road
Send a message via AIM to Geetazz
Script problem

Can someone please tell me what is wrong with this:

break;
default:
include("login_form.inc");
Geetazz is offline   Reply With Quote
Old 07-06-2002, 03:45 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
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
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
running a script at designated time tzarin PHP 5 05-12-2004 08:11 PM
Coditionals problem Nitro PHP 3 11-02-2003 02:27 PM
Help debugging a power problem Belisarius Lounge 0 10-25-2003 05:44 PM
JS Script question M3GAPL3X HTML, XML, Javascript, AJAX 5 04-20-2003 10:21 PM


All times are GMT -8. The time now is 08:24 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting