You are here: can anyone see a problem? « All PHP « IT news, forums, messages
can anyone see a problem?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация