嗨,有人可以告诉我为什么“表格二在这里”消息没有显示在以下代码中吗?我在以下结构中编写了一个冗长的代码。谢谢您的帮助
<DOCTYPE html>
<html>
<head><title></title>
</head>
<body>
<div id="one" style="width:300px; background:gray;">
<form method="post" action="<?= $_SERVER['PHP_SELF'] ?>">
<input type="text" name="txt1" id="txt1">
<input type="submit" name="sendone" id="sendone" value="One">
</form>
</div>
<div id="two" style="width:300px; background:yellow;">
<?php
if(isset($_POST['sendone']))
{echo "<input type='submit' name='sendtwo' id='sendtwo' value='Two'>";}
if(isset($_POST['sendtwo']))
{echo "Form two is here!"; return;}
?>
</div>
</body>
</html>