Posted by gerg on 12/16/05 07:13
I'm having a problem with a code I'm writing to display a login form if
there is no cookie data present. Here is my small code: this code is
yielding this error:
Parse error: parse error, unexpected $ in
/home/thegofo/public_html/includes/login_functions.php on line 30
The code is:
<?
// show login form
function showlogin(){
// if cookie data is empty, or does not match, show the form
if ( (empty($_COOKIE['remember'])) || ($_COOKIE['remember'] !=
"some_value") ){
?>
<div align="center">
<img src="../images/login.gif" alt="Please Login">
<br>
<table class="loginform" width="100%">
<tr>
<td>Username </td><td> <input name="user" type="text" size="10"></td>
</tr>
<tr>
<td>Password </td><td> <input name="pass" type="password" size="10"></td>
</tr>
<tr>
<td><input class="loginbutton" name="submit" type="submit"
value="Go!"></td><td></td>
</tr>
</table>
</div>
<? }
showlogin();
?>
Thanks for any help.
Navigation:
[Reply to this message]
|