Re: Please help can anyone figure whats wrong with this?

From: Date: Wed, 25 Jun 2003 16:26:21 +0000
Subject: Re: Please help can anyone figure whats wrong with this?
Groups: php.general 
Request: Send a blank email to php-general+get-152809@lists.php.net to get a copy of this message
----- Original Message ----- From: "Mark Clarkstone" <mark.clarkstone@ntlworld.com> To: <php-general@lists.php.net> Sent: Wednesday, June 25, 2003 10:10 AM Subject: [PHP] Please help can anyone figure whats wrong with this? > if (!$logusername) > echo "<html> > > <head> > > <title>$sitename -- Login --- Error</title> > </head> > > <body> > > <font size=\"2\"><font face=\"Tahoma\">Please enter Your > Username or Sign > Up<br> > </font> > </body> > > </html>"; > } You're missing a starting bracket. You know this was WAY too easy to find. What kind of editor are you using that would miss something this obvious? On an unrelated note you can save yourself a lot of grief by separating your logic and content. In your case a page template with the look and feel of the message page. /** message_page.html **/ <html> <body> <div align="center"> <font size="2" face="Tahoma"><?= $message?></font> </div> </body> </html> /** index.php **/ if($login) { $message = "Please enter your Username or Sign Up."; include("message_page.html"); } else { $message = "Thank you for login in."; include("message_page.html"); } This is just a friendly suggestion. I know most people don't like to be preached to. :) HTH, Kevin

« previous php.general (#152809) next »