[SOLVED] more error help; this will take a while...
Posted: Wed Dec 29, 2004 11:48 pm
what is wrong with this code? it keeps saying it is getting an unexpected $ and the line number is always the last line. I know this is a LOT of code, but please help me! thank you in advance! $permit is a cookie defined by the page check.php, depending on different aspects of the visitors computer. if you need any info about other variables or other things just ask.
Code: Select all
<?
If (!$permit || $permit == "error1" || $permit == "error2" || $permit == "error3") {
header("Location: check.php");
}
If ($permit == "low") {
echo "
<html>
<head>
<title>Take the Stage</title>
<link rel="stylesheet" type="text/css" href="css/splash.css">
</head>
<body>
<center>
<table width=667 border=0 cellpadding=0 cellspacing=0>
<tr>
<td>
<img src="image/index/images/header1.gif" width=66 height=66 alt=""></td>
<td>
<img src="image/index/images/header2.gif" width=67 height=66 alt=""></td>
<td colspan=2>
<img src="image/index/images/header3.gif" width=67 height=66 alt=""></td>
<td rowspan=2>
<img src="image/index/images/header4.gif" width=66 height=66 alt=""></td>
<td rowspan=2>
<img src="image/index/images/header5.gif" width=67 height=66 alt=""></td>
<td rowspan=2>
<img src="image/index/images/header6.gif" width=67 height=66 alt=""></td>
<td rowspan=2>
<img src="image/index/images/header7.gif" width=66 height=66 alt=""></td>
<td rowspan=2>
<img src="image/index/images/header8.gif" width=67 height=66 alt=""></td>
<td rowspan=2>
<img src="image/index/images/header9.gif" width=67 height=66 alt=""></td>
<td>
<img src="image/index/images/header10.gif" width=67 height=66 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=66 alt=""></td>
</tr>
<tr>
<td rowspan=2>
<img src="image/index/images/header11.gif" width=66 height=67 alt=""></td>
<td colspan=2 rowspan=2>
<img src="image/index/images/header12.gif" width=68 height=67 alt=""></td>
<td>
<img src="image/index/images/header3-14.gif" width=66 height=2 alt=""></td>
<td rowspan=2>
<img src="image/index/images/header13.gif" width=67 height=67 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=2 alt=""></td>
</tr>
<tr>
<td colspan=7 rowspan=13>
<iframe width=466 height=265 name="main"src=" ";
$loc = $id.".html";
$errormessage = "The file <b>".$loc."</b> doesn't exist. <br><br>
If you clicked a link to get here, please <a href="mailto:admin@ttstage.com?subject=Broken Link&body=$loc"
target="_new"><u>Report It Here</u></a>.";
$errormessage2 = "The file <b>".$loc."</b> doesn't exist. <br><br>
If you clicked a link to get here, please <a href="mailto:admin@ttstage.com?subject=Broken Link&body=$loc"
target="_new"><u>Report It Here</u></a>.<br><br>Error 2";
if(!$php){
if($id) {
if(file_exists($loc))
{
echo $loc;
}
else {
echo $errormessage;
}
}
if($loc == ".html") {
echo "welcome.php";
}
}
if($php="1"){
$phploc = $id.".php";
if($id) {
if(file_exists($phploc))
{
echo $phploc;
}
}
}
echo "
"></iframe></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=65 alt=""></td>
</tr>
<tr>
<td colspan=3>
<a href="index.php?id=welcome&php=1">
<img src="image/index/images/link_home.gif" width=134 height=16 border=0 alt=""></a></td>
<td rowspan=4>
<img src="image/index/images/header14.gif" width=67 height=66 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=16 alt=""></td>
</tr>
<tr>
<td colspan=3>
<a href="index.php?id=students">
<img src="image/index/images/link_students.gif" width=134 height=17 border=0 alt=""></a></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=17 alt=""></td>
</tr>
<tr>
<td colspan=3>
<a href="index.php?id=guest">
<img src="image/index/images/link_guest.gif" width=134 height=17 border=0 alt=""></a></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=17 alt=""></td>
</tr>
<tr>
<td colspan=3>
<a href="index.php?id=gal">
<img src="image/index/images/link_gal.gif" width=134 height=16 border=0 alt=""></a></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=16 alt=""></td>
</tr>
<tr>
<td colspan=3>
<img src="image/index/images/empty.gif" width=134 height=17 alt=""></td>
<td rowspan=4>
<img src="image/index/images/header15.gif" width=67 height=67 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=17 alt=""></td>
</tr>
<tr>
<td colspan=3>
<a href="index.php?id=register">
<img src="image/index/images/link_register.gif" width=134 height=17 border=0 alt=""></a></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=17 alt=""></td>
</tr>
<tr>
<td colspan=3>
<a href="index.php?id=contact&php=1">
<img src="image/index/images/link_contact.gif" width=134 height=16 border=0 alt=""></a></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=16 alt=""></td>
</tr>
<tr>
<td colspan=3>
<a href="index.php?id=location&php=1">
<img src="image/index/images/link_location.gif" width=134 height=17 border=0 alt=""></a></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=17 alt=""></td>
</tr>
<tr>
<td colspan=3>
<a href="index.php?id=about&php=1">
<img src="image/index/images/link_about.gif" width=134 height=17 border=0 alt=""></a></td>
<td rowspan=4>
<img src="image/index/images/header16.gif" width=67 height=67 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=17 alt=""></td>
</tr>
<tr>
<td colspan=3>
<img src="image/index/images/empty.gif" width=134 height=16 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=16 alt=""></td>
</tr>
<tr>
<td colspan=3>
<img src="image/index/images/empty.gif" width=134 height=17 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=17 alt=""></td>
</tr>
<tr>
<td colspan=3>
<img src="image/index/images/empty.gif" width=134 height=17 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=17 alt=""></td>
</tr>
<tr>
<td>
<a href="javascript:history.back(1)" target="main">
<img src="image/index/images/link_back.gif" width=66 height=45 border=0 alt=""></a></td>
<td>
<img src="image/index/images/blank_square.gif" width=67 height=45 alt=""></td>
<td colspan=2>
<img src="image/index/images/footer1.gif" width=67 height=45 alt=""></td>
<td>
<img src="image/index/images/footer2.gif" width=66 height=45 alt=""></td>
<td>
<img src="image/index/images/footer3.gif" width=67 height=45 alt=""></td>
<td>
<img src="image/index/images/footer4.gif" width=67 height=45 alt=""></td>
<td>
<img src="image/index/images/footer5.gif" width=66 height=45 alt=""></td>
<td>
<img src="image/index/images/footer6.gif" width=67 height=45 alt=""></td>
<td>
<img src="image/index/images/footer7.gif" width=67 height=45 alt=""></td>
<td>
<a href="javascript:history.forward(1)" target="main">
<img src="image/index/images/link_forward.gif" width=67 height=45 border=0 alt=""></a></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=45 alt=""></td>
</tr>
<tr>
<td>
<img src="image/index/images/spacer.gif" width=66 height=1 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=67 height=1 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=1 height=1 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=66 height=1 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=66 height=1 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=67 height=1 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=67 height=1 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=66 height=1 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=67 height=1 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=67 height=1 alt=""></td>
<td>
<img src="image/index/images/spacer.gif" width=67 height=1 alt=""></td>
<td></td>
</tr>
</table>
</body>
</html>
}
";
If ($permit =="high") {
echo "
<html>
<head>
<title>Take the Stage</title>
<link rel="stylesheet" type="text/css" href="css/splash.css">
</head>
<body>
<TABLE WIDTH=1000 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD><IMG SRC="image/index/images/header1.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
<TD><IMG SRC="image/index/images/header2.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
<TD><IMG SRC="image/index/images/header3.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
<TD><IMG SRC="image/index/images/header4.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
<TD><IMG SRC="image/index/images/header5.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
<TD><IMG SRC="image/index/images/header6.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
<TD><IMG SRC="image/index/images/header7.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
<TD><IMG SRC="image/index/images/header8.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
<TD><IMG SRC="image/index/images/header9.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
<TD><IMG SRC="image/index/images/header10.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
</TR>
<TR>
<TD><IMG SRC="image/index/images/header11.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
<TD><IMG SRC="image/index/images/header12.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
<TD COLSPAN=7 ROWSPAN=13><iframe width="700" height="400" name="main" src=" ";
$loc = $id.".html";
$errormessage = "The file <b>".$loc."</b> doesn't exist. <br><br>
If you clicked a link to get here, please <a href="mailto:admin@ttstage.com?subject=Broken Link&body=$loc"
target="_new"><u>Report It Here</u></a>.";
$errormessage2 = "The file <b>".$loc."</b> doesn't exist. <br><br>
If you clicked a link to get here, please <a href="mailto:admin@ttstage.com?subject=Broken Link&body=$loc"
target="_new"><u>Report It Here</u></a>.<br><br>Error 2";
if(!$php){
if($id) {
if(file_exists($loc))
{
echo $loc;
}
else {
echo $errormessage;
}
}
if($loc == ".html") {
echo "welcome.php";
}
}
if($php="1"){
$phploc = $id.".php";
if($id) {
if(file_exists($phploc))
{
echo $phploc;
}
}
}
echo "
"></iframe></TD>
<TD><IMG SRC="image/index/images/header13.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=2><A HREF="index.php?id=welcome&php=1"><IMG SRC="image/index/images/link_home.gif" WIDTH=200
HEIGHT=25 BORDER=0 ALT="Home"></A></TD>
<TD ROWSPAN=4><IMG SRC="image/index/images/header14.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=2><A HREF="index.php?id=students"><IMG SRC="image/index/images/link_students.gif" WIDTH=200
HEIGHT=25 BORDER=0 ALT="Students"></A></TD>
</TR>
<TR>
<TD COLSPAN=2><A HREF="index.php?id=guest">
<IMG SRC="image/index/images/link_guest.gif" WIDTH=200 HEIGHT=25 BORDER=0 ALT="Guest Instructors"></A></TD>
</TR>
<TR>
<TD COLSPAN=2><A HREF="index.php?id=gal"><IMG SRC="image/index/images/link_gal.gif" WIDTH=200 HEIGHT=25
BORDER=0 ALT="Picture Gallary"></A></TD>
</TR>
<TR>
<TD COLSPAN=2><IMG SRC="image/index/images/empty.gif" WIDTH=200 HEIGHT=25 ALT=""></TD>
<TD ROWSPAN=4><IMG SRC="image/index/images/header15.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=2><A HREF="index.php?id=register"><IMG SRC="image/index/images/link_register.gif" WIDTH=200
HEIGHT=25 BORDER=0 ALT="Register"></A></TD>
</TR>
<TR>
<TD COLSPAN=2><A HREF="index.php?id=contact&php=1"><IMG SRC="image/index/images/link_contact.gif" WIDTH=200
HEIGHT=25 BORDER=0 ALT="Contact"></A></TD>
</TR>
<TR>
<TD COLSPAN=2><A HREF="index.php?id=location&php=1"><IMG SRC="image/index/images/link_location.gif" WIDTH=200
HEIGHT=25 BORDER=0 ALT="Location"></A></TD>
</TR>
<TR>
<TD COLSPAN=2><A HREF="index.php?id=about&php=1"><IMG SRC="image/index/images/link_about.gif" WIDTH=200
HEIGHT=25 BORDER=0 ALT="About"></A></TD>
<TD ROWSPAN=4><IMG SRC="image/index/images/header16.gif" WIDTH=100 HEIGHT=100 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=2><IMG SRC="image/index/images/empty.gif" WIDTH=200 HEIGHT=25 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=2><IMG SRC="image/index/images/empty.gif" WIDTH=200 HEIGHT=25 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=2><IMG SRC="image/index/images/empty.gif" WIDTH=200 HEIGHT=25 ALT=""></TD>
</TR>
<TR>
<TD><A HREF="javascript:history.back(1)"><IMG SRC="image/index/images/link_back.gif" WIDTH=100 HEIGHT=67
BORDER=0 ALT="Back"></A></TD>
<TD><IMG SRC="image/index/images/blank_square.gif" WIDTH=100 HEIGHT=67 ALT=""></TD>
<TD><IMG SRC="image/index/images/footer1.gif" WIDTH=100 HEIGHT=67 ALT=""></TD>
<TD><IMG SRC="image/index/images/footer2.gif" WIDTH=100 HEIGHT=67 ALT=""></TD>
<TD><IMG SRC="image/index/images/footer3.gif" WIDTH=100 HEIGHT=67 ALT=""></TD>
<TD><IMG SRC="image/index/images/footer4.gif" WIDTH=100 HEIGHT=67 ALT=""></TD>
<TD><IMG SRC="image/index/images/footer5.gif" WIDTH=100 HEIGHT=67 ALT=""></TD>
<TD><IMG SRC="image/index/images/footer6.gif" WIDTH=100 HEIGHT=67 ALT=""></TD>
<TD><IMG SRC="image/index/images/footer7.gif" WIDTH=100 HEIGHT=67 ALT=""></TD>
<TD><A HREF="javascript:history.forward(1)"><IMG SRC="image/index/images/link_forward.gif" WIDTH=100 HEIGHT=67
BORDER=0 ALT="Forward"></A></TD>
</TR>
</table>
</body>
</html>
";
}
?>