|
|
|
|
![]() ![]() |
Jun 21 2007, 08:11 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 299 Joined: 27-January 07 From: Winter is cold here. Member No.: 37,984 ![]() |
CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <title>Rune Mods</title> </head> <body> <a href="?mode=idx">Home- Under Construction</a> - <a href="?mode=login">Login</a> - <a href="?mode=register">Register</a><br> <?php $page=$_GET['mode']; switch($page){ case 'login'; include ("login.php"); break; case 'register'; include ("register.php"); break; default: echo "Under Constrution<br /> Please <a href="?mode=login">Login</a> or <a href="?mode=register">Register</a>"; break; } ?> </body> </html> And then I get the error- QUOTE Parse error: syntax error, unexpected '=' in /home/imtay22/public_html/index.php on line 19 Please help! Oh wow I found the problem. Line 19 has the double quotes for the HTML and the php. So I just switched the php ones to single quotes! This post has been edited by Imtay22: Jun 21 2007, 08:14 PM |
|
|
|
Jun 21 2007, 08:23 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 413 Joined: 4-October 06 From: Psychedelic Realms Member No.: 31,079 |
Try this
CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <title>Rune Mods</title> </head> <body> <a href="?mode=idx">Home- Under Construction</a> - <a href="?mode=login">Login</a> - <a href="?mode=register">Register</a><br> <?php $page=$_GET['mode']; switch($page){ case 'login': include ("login.php"); break; case 'register': include ("register.php"); break; default: echo "Under Constrution<br /> Please <a href=\"?mode=login\">Login</a> or <a href=\"?mode=register\">Register</a>"; break; } ?> </body> </html> You need to escape special characters in echo, and use : instead of ; in case This post has been edited by matak: Jun 21 2007, 08:24 PM |
|
|
|
Jun 21 2007, 08:31 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 299 Joined: 27-January 07 From: Winter is cold here. Member No.: 37,984 ![]() |
Well it works now, it was just the quote-double quote thing. SO now it works. This topic can be closed now!
|
|
|
|
Jun 21 2007, 08:35 PM
Post
#4
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 413 Joined: 4-October 06 From: Psychedelic Realms Member No.: 31,079 |
Well it works now, it was just the quote-double quote thing. SO now it works. This topic can be closed now! this topic must be closed right now.. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 10th October 2008 - 08:09 PM |