English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

This is what the page says when it tries to load Login.php

Parse error: parse error, unexpected T_DEFAULT in /home/content/t/n/i/tnine8MsoP29il/html/Main/Login.php on line 149

All thats on line 149 is: default:

Whats wrong with it?

This is the code that surrounds line 149 if that helps:

header("Location: New_member.php");
}
break;

default:
include("login_form.inc");
}

2006-10-22 14:06:23 · 3 answers · asked by peter s 1 in Computers & Internet Programming & Design

3 answers

Check for mismatched brackets and the syntax of the rest of your switch statement. I'm pretty new at PHP, but I don't see a problem with the lines you have there, if they are inside a switch.

2006-10-22 14:10:16 · answer #1 · answered by Ken H 4 · 0 0

check to make sure no white spaces before opening php and closingphp and if there is >>>>>>>>

2006-10-22 21:26:40 · answer #2 · answered by halicon2000 4 · 0 0

can you submit the whole switch block please ? it's hard to debug with partial code like that

2006-10-25 06:55:41 · answer #3 · answered by d@mn 2 · 0 0

fedest.com, questions and answers