php - 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
单击按钮时,我应该怎么做才能转到指向的链接?
解决方案
推荐阅读
- html - 如何使用引导程序制作固定网格布局?
- apache-kafka - 尝试使用融合在 Kafka 中创建主题正则表达式
- outlook - Outlook 电子邮件正文中的 MailTo 链接未生成正确的邮件
- angular - 使用 @ngtools/webpack 的 Angular 延迟加载在 webpack 中不起作用
- c++ - 进程以状态 -1073740940 终止
- sikuli - Sikuli - 脚本中的配置 1920x1080
- apache-kafka - Kafka Consumer Deserializer 是否必须匹配 Producer Serializer?
- javascript - 如何将函数从类组件切换到函数组件
- c# - 带有 MultipartFormDataContent 的 Blazor WASM .net HttpClient 不起作用
- get - Internet Explorer 11 重定向在 GET 请求中不起作用