parse error
| From: | Brad Sumrall | Date: | Sat, 05 May 2007 01:35:26 +0000 |
| Subject: | parse error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-254451@lists.php.net to get a copy of this message | ||
Hi folk, I am writing a login in script and get the following:
Parse error: parse error, unexpected T_ELSE in
/home/content/c/u/t/cuteirka/html/commonlogin_new.php on line 37
I am basically pulling this straight out the php for dummies manual.
Can someone kindly point me in the right direction on this one!
Brad
1 <form action="/phpBB/login.php" method="post"
target="_top">
2 <table width="200" cellpadding="4" cellspacing="1"
border="0"
class="forumline" align="center">
3 <tr>
4 <th background="images/login_top2.jpg"
height="30" class="thHead" nowrap="nowrap"></th>
5 </tr>
6 <tr>
7 <td class="row1"><table border="0"
cellpadding="3" cellspacing="1" width="100%">
8 <tr>
9 <td width="11%" align="right"><div
align="left"><span
class="gen">Username:</span></div></td>
10 </tr>
11 <tr>
12 <td align="right"><input type="text"
class="post" name="username" size="25" maxlength="40"
value="" /></td>
13 </tr>
14 <tr>
15 <td align="right"><div
align="left"><span
class="gen">Password</span></div></td>
16 </tr>
17 <tr>
18 <td align="right"><span
class="gen">
19 <input type="password" class="post" name="password"
size="25"
maxlength="32" />
20 :</span></td>
21 </tr>
22 <tr align="center">
23 <td colspan="2"><span
class="gen">Log me
on automatically:
24 <input type="checkbox" name="autologin"
/></span></td>
25 </tr>
26 <tr align="center">
27 <td colspan="2"><input type="hidden"
name="redirect" value="" /><input type="submit"
name="login"
class="mainoption value="Log in" /></td>
28 </tr>
29 <tr align="center">
30 <td colspan="2"><span
class="gensmall"><a
href="forgot_password.php" class="gensmall">I forgot my
password</a></span></td>
31 </tr>
32 </table>
33 </td>
34
25 </tr>
36 <?php
37 {else}
38 ?>
<tr>
<td width="207" height="32"
background="images/login_top2.jpg"
class="headerlogout" align="center">
<table width="100%">
<tr>
<td width="30" height="27"></td>
<td align="left"><a
href="javascript:logout()" class="link1">Log out</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center"
class="logincenterbg">
<table width="88%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td height="10" align="left"
class="bluetext"></td>
</tr>
<tr>
<td align="left" class="link2">Welcome
:
<?php echo $_SESSION["userid"] ?></td>
</tr>
<tr>
<td height="22" align="left"
class="bluetext"></td>
</tr>
<tr>
<td height="20" align="left"><a
class="link1" href="editaccount.php">Manage Account</a></td>
</tr>
<tr>
<td height="20" align="left"><a
class="link1" href="editprofile.php">Manage Profile</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" valign="top"><img
src="images/login_bottom.jpg" width="200" height="8" alt=""
/></td>
</tr>
</table>
</form>