I’m still learning PHP and I’m testing a login system. When I try to access the form page, I get this error: “Parse error: syntax error, unexpected $end in /home/accoun80/public_html/login_form.php on line 27”. The code of the page is this:
[php]<?php
session_start();
require_once ‘classes/Membership.php’;
$membership = new Membership();
//If the user clicks the Log out link
if(isset($_GET[‘status’]) && $_GET[‘status’] == ‘loggedout’) {
$membership->Log_User_Out();
//Did the user enter a password/username and click submit
if($_POST && !empty($_POST[‘username’]) && !empty($_POST[‘pwd’])) {
$response = $membership->validate_User($_POST[‘username’], $POST[‘pwd’]);
}
?>
Login
Username:
Password:
[/php] Can someone help me?