Home > Backend Development > PHP Tutorial > 求高手帮小弟我看看代码

求高手帮小弟我看看代码

WBOY
Release: 2016-06-13 13:26:17
Original
751 people have browsed it

求高手帮我看看代码
帮我看下代码吧,谢谢了。
就是一个简单的登陆文件Login.php,语法没有问题,不知道是否是逻辑有问题,很简单的逻辑啊。
每次运行的结果都是“欢迎使用医院挂号门诊系统!”。
这个文件的参数都是从一个简单的HTML文件用post方法传来的。

HTML code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->



    <title>医院门诊系统</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">


<?php $user = $_POST['user'];
    $passwd = $_POST['password'];
    if ((!isset($user)) || (!isset($passwd)))
    {
?>
        <p>请输入用户名或密码</p>
        
Copy after login
用户名:
密码:
欢迎使用医院挂号门诊系统!"; } else { echo"

用户名或密码错误!

"; } } ?>

------解决方案--------------------
if ($count=1)
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