Skip to main content

5.4. 将表单数据与原始表单关联

5.4. Correlating Form Data with the Original Form

🇬🇧 英文原文

This specification provides no specific mechanism by which multipart/form-data can be associated with the form that caused it to be transmitted. This separation is intentional; many different forms might be used for transmitting the same data. In practice, applications may supply a specific form processing resource (in HTML, the ACTION attribute in a FORM tag) for each different form. Alternatively, data about the form might be encoded in a "hidden field" (a field that is part of the form but that has a fixed value to be transmitted back to the form-data processor).

🇨🇳 中文翻译

本规范没有提供任何特定机制来将 multipart/form-data 与导致其传输的表单关联起来。这种分离是有意为之的; 许多不同的表单可能用于传输相同的数据。在实践中,应用程序可能为每个不同的表单提供特定的表单处理资源(在 HTML 中,是 FORM 标签中的 ACTION 属性)。或者,关于表单的数据可能被编码在 "隐藏字段" 中(该字段是表单的一部分,但具有要传回表单数据处理器的固定值)。