Lamez Posted August 25, 2007 Share Posted August 25, 2007 Hey Guys, I keep on getting this error saying there is something wrong on line 51 Here is line 51 and on, please help I have clueless <?php $getlink = $_GET["process"]; if ($getlink == "members_list") { echo "Hello This Is Page 1"; } elseif ($getlink == "logout") { setcookie("loggedin", "TRUE", time()-(3600 * 24)); //logs the uer out setcookie("$username"); print <<<LOG <meta http-equiv="Refresh" content="3; URL=../../index.php"> <div class="box"> <center><font size="3">You are logged out.</font></center> </div> LOG; } else { print <<<NEW //The Main Links </u> <div class="boxn"> <font size="3"> </u> <div class="left"> <br /> <br /> <p><a href="upload/udsection.php">Upload\Download Section</a> <br /> <br /> <a href="proxy/goto.php">Lamez's Proxy</a> <br /> <br /> <a href="arcade/playgame.php">Arcade</a><font color="#FF0000" size="1"><font color="#000000">*</font>Coming Soon!</font></p> </div> <div class="right"> <br /> <br /> <p><a href="contact.php">Suggestions\Contact Lamez</a> <br /> <br /> <a href="news/news.php">Website News</a> <br /> <br /> <font color="#FF0000" size="1">Coming Soon!<font color="#000000">*</font></font><a href="lamez/corner.php">Lamez's Corner</a></p> </div> </div> NEW; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/66676-solved-what-is-wrong/ Share on other sites More sharing options...
samoht Posted August 25, 2007 Share Posted August 25, 2007 is this: $getlink = $_GET["process"]; line 51?? if it is maybe you need to set it to if (isset($_GET['process'])) { $getlink = $_GET['process'] } ?? But could you tell us more, like what is the error that you get? Quote Link to comment https://forums.phpfreaks.com/topic/66676-solved-what-is-wrong/#findComment-334052 Share on other sites More sharing options...
Lamez Posted August 25, 2007 Author Share Posted August 25, 2007 Oh a I am very sorry, I was in a rush Here is my error Parse error: syntax error, unexpected T_SL in /mounted-storage/home48c/sub007/sc33591-LWQU/www/login/_members/members.php on line 51 line 51 starts here print <<<NEW //The Main Links LINE 51 HERE </u> <div class="boxn"> <font size="3"> </u> <div class="left"> <br /> <br /> <p><a href="upload/udsection.php">Upload\Download Section</a> <br /> <br /> <a href="proxy/goto.php">Lamez's Proxy</a> <br /> <br /> <a href="arcade/playgame.php">Arcade</a><font color="#FF0000" size="1"><font color="#000000">*</font>Coming Soon!</font></p> </div> <div class="right"> <br /> <br /> <p><a href="contact.php">Suggestions\Contact Lamez</a> <br /> <br /> <a href="news/news.php">Website News</a> <br /> <br /> <font color="#FF0000" size="1">Coming Soon!<font color="#000000">*</font></font><a href="lamez/corner.php">Lamez's Corner</a></p> </div> </div> NEW; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/66676-solved-what-is-wrong/#findComment-334062 Share on other sites More sharing options...
sasa Posted August 25, 2007 Share Posted August 25, 2007 change line print <<<NEW //The Main Links to print <<<NEW no spaces after NEW Quote Link to comment https://forums.phpfreaks.com/topic/66676-solved-what-is-wrong/#findComment-334087 Share on other sites More sharing options...
pkSML Posted August 25, 2007 Share Posted August 25, 2007 change line print <<<NEW //The Main Links to print <<<NEW no spaces after NEW Right. Heredoc syntax , which can be read about at http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc , cannot contain anything else on the beginning line or the ending line. (The identifier is to be terminated with a newline.) Quote Link to comment https://forums.phpfreaks.com/topic/66676-solved-what-is-wrong/#findComment-334167 Share on other sites More sharing options...
Lamez Posted August 26, 2007 Author Share Posted August 26, 2007 wow that space fixed it all. Thanks Guys! Quote Link to comment https://forums.phpfreaks.com/topic/66676-solved-what-is-wrong/#findComment-334216 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.