我需要使用来访问HTML元素name="account",但这是嵌入在PHP中的,当我在网页上出现错误“ unidentified index:account”时,我看不到找到解决方法,我知道这意味着无法找到那个元素。我在同一个项目中做了同样的事情,但是没有从PHP脚本中访问元素。
导致错误的“帐户”页面上的代码行:$customerID = $_GET['account'];其中帐户是我尝试访问的HTML元素。
下面是我试图从中访问按钮的index.php页面上的“ echo”代码。
echo '<div style="float:right; width:
<a href="account.php" style="display:inline-block;"><button type="submit"
name="account" class="glyphicon glyphicon-user btn btn-success" id="account">
</button></a></div>';
这很难解释,但我希望有足够的信息可以帮助别人。
呼如林