如何在shopify联系表单中捕获网站网址
这个问题在这里已经有了答案:
创建一个隐藏的输入
<input type="hidden" value="" id="hiddenurl" name="url"/>
并添加javascript:
var a = document.getElementById('hiddenurl');
a.value = window.location.href;
<p><?= htmlentities( $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ) ?></p>
链接地址: http://www.djcxy.com/p/42287.html
上一篇: How to capture a website url in the shopify contact form
下一篇: Reading URL in php