请问有关问题出在哪

WBOY
Release: 2016-06-13 13:29:08
Original
850 people have browsed it

请教问题出在哪
/*
 * Created on 2012-5-30
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 include("coon.php");
 if($_GET[out]){
 setcookie("cookie","out");
 echo "";
}
if($_POST[user]=='admin'){
$pw=md5($_POST[pw]);
if($pw=='e1bfd762321e409cee4ac0b6e841963c'){
setcookie('cookie','ok');
echo "";
}
include("head.php");
if($_COOKIE['cookie']!='ok'){
?>


 


  ID:
  PW:

 
 

  }else{
  ?>
  退出
    }
  ?>


Parse error: syntax error, unexpected $end in D:\wamp\www\bbs\login.php on line 56


------解决方案--------------------
总共才 48 行代码,拿来 56 行出错?
------解决方案--------------------
错误比较明确啊,$end这个变量有问题啊,先查一下,这个变量在哪里出现了啊,估计要查一下coon.php
------解决方案--------------------
if($_GET[out]){

$_GET['OUT']'去掉可以不?
------解决方案--------------------
不解释了,把我的代码拷贝下吧,括号匹配不合适。
/*
 * Created on 2012-5-30
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 include("coon.php");
 if($_GET[out]){
 setcookie("cookie","out");
 echo "";
}
if($_POST[user]=='admin'){
$pw=md5($_POST[pw]);
if($pw=='e1bfd762321e409cee4ac0b6e841963c'){
setcookie('cookie','ok');
echo "";
} }
include("head.php");
if($_COOKIE['cookie']!='ok'){
?>



ID:
PW:



}else{
?>
退出
}
?>
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!