请问有关问题出在哪

WBOY
Lepaskan: 2016-06-13 10:25:54
asal
887 orang telah melayarinya

请教问题出在哪
/*
 * 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{
?>
退出
}
?>
Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!