0

I'm using ASP classic to get strings from a form on an HTML file using

Request.Form("Name")

I can add a fake input that will hold the html file's name for me like so:

 <input name="Page" type="hidden" value="filename.htm">

And then in the ASP file use

Request.Form("Page")

But I think there must be a smarter way for the ASP code to get the HTML filename.

Am I right? If so, how is it done?

As an alternative, maybe there is a way to get the HTML filename into the HTML itself with JavaScript? so that I'll be able to change the value of the input to the filename of the HTML holding it?

4

1 回答 1

1

如果我理解正确,您想获得 http 引用。根据您寻找的这个 德国Request.ServerVariables("HTTP_REFERER")网站。

注意:请记住,用户可以在浏览器中禁用发送引荐来源信息的选项。在这种情况下,您当前的方式可能是更好的方式......

于 2013-06-11T14:06:02.173 回答