hi all, i am getting this dump
[code=html]Parse error: parse error in /Users/sheldon/Sites/ebs/forgot.php on line 36
and here is the code
[code=php]<?php
session_start(); // Maintain session state
header(“Cache-control: private”); // Fixes IE6’s back button problem.
// Are we logged in, or logging in?
if(@$_SESSION[‘user’]) header(“location: login.php”);
else{
?>
<?php include (‘library/top.php’); ?>
<?php $page=”ForgotPass”; ?>
<?php
$Nemail = $_POST[’email’];
// Include the flat-file
$file = file(“users.php”) or die(“Problem getting the user details flat-file [users.php]”);
// Get the size of file
$totalLines = sizeof($file);
// Get the users details line by line
$line = 0;
$match = 0;
do{
// Check the line isn’t a comment
if(“//” != substr($file[$line], 0, 2)){
// Break our records up
@list($username, $password, $permission, $email, $url, $dob, $location, $joined) = explode(“<del>”, $file[$line]);
// Check the username and passwords match
if(($Nemail) == ($email) $match = 1;
else $match = 0;
}
// Exit loop if match found
if($match) break;
// Increment line count
$line++;
} while($line < $totalLines);
// Include the file or send them back
if($match){
$_SESSION[“user”] = $user;
$_SESSION[“pass”] = $pass;
$_SESSION[“permission”] = $permission;
$_SESSION[“email”] = $email;
$_SESSION[“url”] = $url;
$_SESSION[“dob”] = $dob;
$_SESSION[“location”] = $location;
$_SESSION[“joined”] = $joined;
// Refresh page
header(“location: “. $_SERVER[‘PHP_SELF’]);
?>
<p>
<?php print $_SESSION[’email’]; ?>
</p>
<p>
<?php print $_SESSION[‘pass’]; ?>
</p>
<?php include (‘library/bottom.php’); ?>
the error is on the line
[code=php]
if(($Nemail) == ($email) $match = 1;
I am trying to match the address (Nemail) from the form with the addresses in the database and pull both the email address and the users password.
Any ideas?