Re: Error: unexpected T_ELSE on line 14...?
| From: | Curt Zirzow | Date: | Mon, 19 Jul 2004 02:31:36 +0000 |
| Subject: | Re: Error: unexpected T_ELSE on line 14...? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190962@lists.php.net to get a copy of this message | ||
* Thus wrote Harlequin:
>
> if ($_SESSION["Authorised"]="Yes");
> {
> // Body ~ Verified User:
> echo "<br><br><br>";
> echo "<p>Thank you $UserCName, Now please just provide the following
> information
> and your aProfile will be loaded.";
> }
> else <<<----- The offending line...!
> {
> echo "You need to go back and complete the fields correctly...!";
> }
You should really work on your indentation*:
if ($_SESSION['Authorized'] == 'Yes' )
{
echo '<p style="padding-top: 3em;">Thank you...</p>';
}
else
{
echo '<p>You need to go back...</p>';
}
* I'll ignore the html part for now :)
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!