【发布时间】:2017-05-20 18:56:48
【问题描述】:
我需要帮助。我有一个基本的 html 表单,如下所示。现在,当我在浏览器上调用它时,我有两个字段 也称为:
总结 = 总和 描述 = 评论
现在在提交按钮上,操作是调用一个 url,但我希望上述两个字段成为 url 的一部分
因此,如果我手动将 John is Summary 字段和 Smith 放入 Description 字段中,则 url 必须捕获字段值并类似于
http://itds041/trackit/app%20-%20cop...EST+USER&summ=John&comment=Smith
块引用
<form action="/trackit/app%20-%20copy/curl_create.php?thisuser=TEST+USER&summ=&comment=" method="post" target="_self">
总结:
说明:
块引用
看截图解释。enter image description here
问候 沙比尔萨
【问题讨论】:
-
如果
POST用于提交表单,在 URL 中包含发布的数据不是一个好习惯。这样做有什么特殊原因吗?也许这是一个 x-y 问题? xyproblem.info -
无特殊原因,基本上我想在提交时必须打开带有字段参数的url
标签: html forms curl post url-rewriting