gpt4 book ai didi

javascript - 使用框中给出的数据完成 url 并转到该 url

转载 作者:行者123 更新时间:2023-11-30 12:12:29 26 4
gpt4 key购买 nike

我和我的同事在一天中多次使用下面的链接,通过点击几个页面最终得到这个链接:http://eharita.mamak.bel.tr/imararsiv/test.aspx?f_ada=36391&f_parsel=4

我想做的是,在 test.aspx?_ada= 之后,您会看到 36391 这是我的第一个数字,&f_parsel= 4这是第二个。

我想创建一个包含 2 个框和一个提交、发送按钮的 HTML,我想在第一个框中写下一个数字(在示例中是:36391),在第二个框中写下另一个数字(在示例中是:4) 然后我将单击提交或发送按钮,此操作将带我到 URLhttp://eharita.mamak.bel.tr/imararsiv/test.aspx?f_ada=36391&f_parsel=4

也许这很容易,但作为一名土木工程师,我不知道如何制作这样的 HTML 页面。

最佳答案

这很简单,你只需要一个基本的表格。

<form action="http://eharita.mamak.bel.tr/imararsiv/test.aspx" method="GET">
<input type="text" name="f_ada" > <br>
<input type="text" name="f_parsel"> <br>
<button type="submit"> Submit</button>
</form>

您可以在这里试用 http://jsfiddle.net/ea6heach/

关于javascript - 使用框中给出的数据完成 url 并转到该 url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33389630/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com