我有这个代码,我想在密码=你好时发送一条消息.但该页面立即显示了文字:"好传"和"坏传"
这段代码出了什么问题?
<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) 如何定位所有<a>在其 href 属性中都具有特定值的标签以使用 css 进行样式设置?
示例:所有<a href="http://www.google.nl"></a>标签