首页 > 解决方案 > Html 表单标签不去行动中的地址

问题描述

我有一个表单标签,它具有在链接上运行具有特定值的特定 .php 文件的操作(mn=2)。

<form action="http://localhost/UniversityView/index.php?mn=2">
    <button type="submit" name="newrow" class="btn">New Row</button>
</form>

我期待转到指向的链接,而不是转到登录页面,即http://localhost/UniversityView/index.php

单击按钮时,我应该怎么做才能转到指向的链接?

标签: phphtmlforms

解决方案


推荐阅读