title: Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\forgot.php
body: <p>I need your help please, I have tried with several codes, The code is to recover password, but it does not run on xampp</p>
  
  <p>I have a problem with xampp: 
  Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\forgot.php</p>
  
  <p>Is my code</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;?php
   if(User == false) { 
  
      //Pass
          if(isset($_POST['emailAddress'])){
              $email = FilterText($_POST['emailAddress']);
              $buscar = mysql_query("SELECT mail FROM users WHERE mail = '".$email."'");
              $_SESSION['correo'] = $email;
              if(mysql_num_rows($buscar) &gt; 0){
                  $_SESSION['tmptxt_seg'] = GenerateCode();
                  $code = $_SESSION['tmptxt_seg'];
                  mail($email,'Recuperación de contraseña - iZabbo', "Estimado usuario, hemos detectado la solicitud del cambio de tu contraseña correctamente. Si no es as&amp;iacute; ignora este mensaje, de lo contrario haz clic &lt;a href='http://izabbo.com/account/password/resetIdentity/9346b03cbb86c009501ce113cb38dce39ebba9c34a6416d8edef5ac544db7dddb5158bf4e86bc09c089a3ed7e87049f144888ef2b45e1a02986bdc8858d82ad0dd460/?c=".$code."'&gt;Aqu&amp;iacute;&lt;/a&gt; o copia el siguiente enlace:&lt;br&gt; http://izabbo.com/account/password/resetIdentity/9346b03cbb86c009501ce113cb38dce39ebba9c34a6416d8edef5ac544db7dddb5158bf4e86bc09c089a3ed7e87049f144888ef2b45e1a02986bdc8858d82ad0dd460/?c=".$code." &lt;br&gt; ¿No ha funcionado? ¡Manda nuevamente el formulario!", 'soporte@izabbo.com');
  
                      echo '&lt;script language="javascript"&gt;alert("Te hemos enviado un Email con un enlace para cambiar tu contraseña. Recuerda comprobar también la carpeta de Spam");&lt;/script&gt;'; 
                  echo '&lt;meta http-equiv="refresh" content="0;url=/index.php"&gt;';
              }else{ 
                  echo '&lt;script language="javascript"&gt;alert("El Email ingresado no se encuentra. Intenta registrandote.");&lt;/script&gt;';
  
              }
          }
      //End Pass
  
      $getid = FilterText($_GET['c']);
      $correo = $_SESSION['correo'];
      if(empty($getid)){
          echo '&lt;meta http-equiv="refresh" content="0;url=/index.php"&gt;';
      }elseif($getid !== $_SESSION['tmptxt_seg']){
          echo '&lt;meta http-equiv="refresh" content="0;url=/index.php"&gt;';
      }
          //NEWPASS 
          if(isset($_POST['newsena'])){
              $mail = $_SESSION['correo'];
              $contra = FilterText($_POST['newsena']);
              $contra2 = FilterText($_POST['newsena2']);
              $buscar = mysql_query("SELECT * FROM users WHERE mail = '".$mail."'");
              $user = mysql_fetch_array($buscar);
              $newpassword = md5($contra);
              if(strlen($contra) &lt; 6 || strlen($contra) &gt; 32){
                  echo '&lt;script language="javascript"&gt;alert("Inserta una contraseña válida.");&lt;/script&gt;';
                  header("LOCATION: /account/password/resetIdentity/9346b03cbb86c009501ce113cb38dce39ebba9c34a6416d8edef5ac544db7dddb5158bf4e86bc09c089a3ed7e87049f144888ef2b45e1a02986bdc8858d82ad0dd460/?c=". $_SESSION['tmptxt_seg']."");
              }else{
                  if($contra !== $contra2){
                  echo '&lt;script language="javascript"&gt;alert("Las contraseñas no coinciden.");&lt;/script&gt;';
                  header("LOCATION: /account/password/resetIdentity/9346b03cbb86c009501ce113cb38dce39ebba9c34a6416d8edef5ac544db7dddb5158bf4e86bc09c089a3ed7e87049f144888ef2b45e1a02986bdc8858d82ad0dd460/?c=". $_SESSION['tmptxt_seg']."");
                  }else{
                      mysql_query("UPDATE users SET password = '".$newpassword."' WHERE mail = '".$mail."' LIMIT 1");
                      $_SESSION['Password'] = $newpassword;
                      echo '&lt;script language="javascript"&gt;alert("Contraseña actualizada con éxito.");&lt;/script&gt;';
                      echo '&lt;meta http-equiv="refresh" content="0;url=/index.php"&gt;';
                  }
              }
          }
      //END NEWPASS
  
      ?&gt;
  </code></pre>