echo '<script type="text/javascript">' echo 'alert("los datos no coinciden");'; echo 'javascript:history.back();'; echo '</script>';