0

我正在努力将结帐页面中的一些纯文本传递到收据页面,但是我的服务器功能有很多限制,所以我相信我可以使用 Javascript 来实现这一点,但是凭借我的知识库,我无法做到然而。

在我的表格上,我有如下内容:

<form id="ValidateOrderRegistration" name="catwebformform14103" method="post" enctype="multipart/form-data" action="/FormProcessv2.aspx?WebFormID=10850&?buyeremail=<script>document.write(encodeURIComponent('{module_emailaddress}'))</script>&OID={module_oid}&OTYPE={module_otype}&EID={module_eid}&CID={module_cid}&CC ={module_urlcountrycode}&Referrer={module_siteurl,true,true}">
.....

<div class="cart-prod-name" id="prodName">Name as plain text</div>
<div class="cart-prod-price">Price as plain text</div>
<div class="cart-prod-qunt" id="prodQuantity">Quantity as plain text</div>

......
</form>

我可以很好地将模块添加?buyeremail=document.write(encodeURIComponent('{module_emailaddress}'))&到表单操作并使用{module_url,buyeremail}在我需要的页面上生成。

我的问题是如何将产品名称、价格和数量作为纯文本传输到表单提交时的 URL,以便我可以在下一页填充。

非常感谢分享的一些知识。

4

0 回答 0