Connecting Tech Pros Worldwide Help | Site Map

get page name??

polilop
Guest
 
Posts: n/a
#1: Oct 29 '05
Is there a way to get the name of the page that was submited to another asp
page??


polilop
Guest
 
Posts: n/a
#2: Oct 30 '05

re: get page name??


To be more precise. I have a form, when submitted calls a nother asp page
that takes the data out of the form
and dose something with the data. But i have a lot of pages with forms that
call upon the same asp page that handels
the data. I need to know from which page came the request.
I could work around this problem by adding hiddeen fields to the pages but
it would be easier if i could just get the name of the file(name of the
page).
"polilop" <fmatosic@inet.hr> wrote in message
news:eqfd77L3FHA.1140@tk2msftngp13.phx.gbl...[color=blue]
> Is there a way to get the name of the page that was submited to another
> asp page??
>[/color]


polilop
Guest
 
Posts: n/a
#3: Oct 30 '05

re: get page name??


found it

Request.ServerVariables("HTTP_REFERER")

"polilop" <fmatosic@inet.hr> wrote in message
news:%23TTX6nS3FHA.3136@TK2MSFTNGP09.phx.gbl...[color=blue]
> To be more precise. I have a form, when submitted calls a nother asp page
> that takes the data out of the form
> and dose something with the data. But i have a lot of pages with forms
> that call upon the same asp page that handels
> the data. I need to know from which page came the request.
> I could work around this problem by adding hiddeen fields to the pages but
> it would be easier if i could just get the name of the file(name of the
> page).
> "polilop" <fmatosic@inet.hr> wrote in message
> news:eqfd77L3FHA.1140@tk2msftngp13.phx.gbl...[color=green]
>> Is there a way to get the name of the page that was submited to another
>> asp page??
>>[/color]
>
>[/color]


Evertjan.
Guest
 
Posts: n/a
#4: Oct 30 '05

re: get page name??


polilop wrote on 30 okt 2005 in microsoft.public.inetserver.asp.general:
[color=blue]
> found it
>
> Request.ServerVariables("HTTP_REFERER")
>[/color]

The problem is, it depends on the client's browser to implement this.
Inside one domain, I would opt for a hidden field option
[or both if you are realy paranoid].

<input type='hidden' name='theReferrer'
value='<%= Request.ServerVariables("URL") %>'>


--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Closed Thread


Similar ASP / Active Server Pages bytes