Problème PHP

Bonjour, Php me dit ceci lors de l'execution de ma page:

Parse error: syntax error, unexpected $end in Adresse du Site on line 30

Mais... Comment le résoudre? Merci d'avance.

3 réponses

  1. Salut ça veut dire que tu as une erreur de syntaxe, donc soit l'oubli d'un point-vigule, ou d'apostrophe ... Mais dans ton cas vérifie que toutes les accolades soit bien fermé. { }
    1. Euh... le code de ma page... x)
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
         <head>
             <title>Tadam!</title>
             <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      	   <link rel="icon" type="image/png" href="images/favicon.png" />
      	   <link rel="stylesheet" media="screen" type="text/css" title="Style" href="style.css" />
         </head>
         <body style="postion: center;">
      		<h2>Allez, entraine-toi !</h2>
      		<?php if (!isset($_POST['mdp']) OR !isset ($_POST['pseudo']))
      		{ ?>
      		<form method="POST" action="lv1.php">
      			<p style="postion: center;">
      				<input type="text" value="Pseudo" name="pseudo" />  |  <input type="password" value="Mot de passe" name="mdp" />
      			</p>
      		</form>
      		<?php } else {
      			if ($_POST['pseudo'] == 'giyufuidfigèè-ééughihfduigidfrgààçà)' AND $_POST['mdp'] == 'gfysuhgfezgfhvgjreygfè_ty_gfè')
      			{ ?>
      		<script language="javascript" type="text/javascript">
      		<!--
      		window.location.replace("http://ovnize.free.fr/aventhack/lv2.php");
      		-->
      		</script>
      		<?php } else {
      		echo ('Mauvais Identifiants');
      		} ?>
      
      </html> <?php $end ?>
      1. 		<?php } else {
        			if ($_POST['pseudo'] == 'giyufuidfigèè-ééughihfduigidfrgààçà') AND $_POST['mdp'] == 'gfysuhgfezgfhvgjreygfè_ty_gfè')
        			{ ?>