小编Thi*_*ers的帖子

PHP发布在同一页面上

我有这个代码,我想在密码=你好时发送一条消息.但该页面立即显示了文字:"好传"和"坏传"

这段代码出了什么问题?

<body>
<?php
if(isset($_POST['submit'])) 
{
    $wachtwoord = ($_POST['wachtwoord']);

    if ($wachtwoord = "hello")
    {
     ?><h1>Good pass</h1><?php;
    }

    else 

    if($wachtwoord != "hello")
    {
    ?><h1>Wrong pass.</h1><?php;
    }
} 

else 
{
?>
<center>
    <br><br><br><br>
        <table>
            <tr><td>Hello User, <br><br><hr>
            <b><a href="link0/">DirectAdmin</a><br><br>
            <a href="link1/">PHPMyAdmin</a></b><br>
            <form action="" method="POST">
            <input name="wachtwoord" type="text" /><input type="submit" name="submit" value="Go" /></td></tr>
            </form>
        </table>
    <br><br>
    </center>
<?php
}
?>
</body>
Run Code Online (Sandbox Code Playgroud)

html php

2
推荐指数
1
解决办法
77
查看次数

在 href 属性中具有特定值的样式锚标记?

如何定位所有<a>在其 href 属性中都具有特定值的标签以使用 css 进行样式设置?

示例:所有<a href="http://www.google.nl"></a>标签

html css css-selectors

-1
推荐指数
1
解决办法
2770
查看次数

标签 统计

html ×2

css ×1

css-selectors ×1

php ×1