且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP& URL的散列/片段部分

更新时间:2023-02-23 10:09:52

您需要使用Javascript才能阅读此内容。有几个不同的选项 - 在页面加载时,您可以使用XmlHTTPRequest(AJAX请求)告诉服务器附加URL参数。 Alternatley,你可以检查是否有其他参数(也通过Javascript),如果你找到任何,请发回到一个不同的URL,这些参数编码到URL本身。

You'll need to use Javascript to read this. There are a few different options - upon page load, you could use an XmlHTTPRequest (AJAX request) to tell the server what the additional URL parameters were. Alternatley you could check to see if there are additional parameters (also via Javascript), and if you find any, post back to a different URL that has these parameters encoded into the URL itself.