parse error (;)
-
I can’t figure this out … I have a simple php code
here:
$error=””; // Variable To Store Error Message
if (isset($_POST[‘submited’])) {
if (empty($_POST[‘username’]) || empty($_POST[‘password’])) {
$error= “Utilisateur ou Mot de passe invalide”;
}
else
{
$username=$_POST[‘username’];
$password=$_POST[‘password’];
$username = stripslashes($username);
$password = stripslashes($password);if ($username == “XXXX” && $password == “XXXX”) {
$_SESSION[‘login_user’]=$username; // Initializing Session
header(“location: https://mysite.ca/fr/$username”); // Redirecting To Other Page
} else {
$error= “Utilisateur ou Mot de passe invalide”;
}
}
}
///// fin user loginthere is no error with that code right ? well I got this :
Parse error: syntax error, unexpected ‘;’ in …mysite/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 17I tried everything im thinking about an other way to insert php …what do u suggest ?
- The topic ‘parse error (;)’ is closed to new replies.