请教问题出在哪
/*
* 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'){
?>
}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'){
?>
}else{
?>
退出 }
?>