Capturing Previous HTTP_REFERER
I have a form that I use to submit feedback to a database. The form can be called from any number of pages and I track the page that has opened the form using the server variable, HTTP_REFERER.
A user does have the option of submitting multiple feedback messages by filling out the form multiple times and clicking submit for each (there are different categories that can be chosen on the form itself that make this obvious).
The problem is that on submissions after the first, HTTP_REFERER no longer refers to the original opener but to the feedback page (since the user returns to the feedback page) . How can I capture and keep the original HTTP_REFERER? Code:
View Replies
ADVERTISEMENT
is there a way to capture the pagename. say I am using a form with "post" method and then use request.form to get the value
of variables from the previous form. is there a way to capture the name of the form that made the request? for e.g if the first
form is "welcome.asp" and the second form is "Hello.asp". can i capture the form name (welcome) in the second form?
View Replies
View Related
I'm having a bit of a problem trying to capture a users LAN ID from the network. Currently I have an activex component that does it for me and I use Javascript to display/capture. Which was fine prior to the DDA guidelines. Now I need to find a way to do so without using JavaScript.
The first thing I tried was to use the Servervariables available but unfortunatly our servers use annonymous authentication, so I can't use that method. I've even tried but had no joy accessing Active Directory for the LAN ID, so I'm currently left scratching my head. Does anyone know of a way I can acheive this?
View Replies
View Related
I have made a asp page that accepts some data from user and stores it in MS Access database. Now I want to identify the user who filled the form and store this information in database. About the enviornment.
the server has Windows 2000 server installed. Clients have Windows XP. Server also has Exchange 2003 installed and every client has Outlook Express installed. Every user has to login to his account inorder to use a machine. A given user can login on any machine.
How can i find the identity of the user who submitted the form? Is it possible to find out the current logged in user given the IP address of the machine? If yes, how and will there be any chances of error due to delay in replication?
View Replies
View Related
I run the internal reporting system of a few dozen employees. They submit many extensive reports and if they encounter a server, SQL, or parse error they have to re-enter the information, causing great frustration.
If I can save their querystring somehow, I can fix the problem and then resubmit their input myself, saving them a great amount of frustration. Ideally, I'd like to just be able to just put a function or an include at the top of every script I'm looking to save, however, in the case of a parse-error I believe the input will halt altogether.
View Replies
View Related
Can someone help me regarding Capturing Image from a Video in ASP. what I have achieved is this, I have run the video using Media Player Active-X Control and have got a button control on which I have initiated a component known as Media Processor, which saves the frame according to current position supplied in a picture format. But the problem is that it doesn't support files greater than 300 MB or so. I want to have a support of upto 2 GB files. Moreover, I have to keep in consideration the performance issues, it shouldn't get my server down. Can someone give me any idea about any component for this job, I have been able to find out only this on different locations. I have got another one that is working well in VB, but there is a problem with using in ASP. I am using Media Player just because of buffering, actually I want is kind of streaming so that the server gets minimum load. How to achieve this?
View Replies
View Related
i have an online form and i have a number of multiple checkboxes in it..which the user can select all or just one...now i dont know how to capture this date of checkboxes to send it to my email after the user hits submits.i am using CDOSYS for getting the email....
View Replies
View Related
I'm trying to design a voting page. The flow as follow:
1) there is a table filled with rows (data from db)
2) each row come with a button = "vote"
3) when user click the button "vote", db will UPDATE the value(Yes/No/etc) of the row + 1
example:
1. Yes "Button"
2. No "Button"
3. etc "Button"
Since there is three button, how can the button identify which value to UPDATE in db (when the user might just click any one of it)?
View Replies
View Related
Is there a script/compoenent which can capture Faxes and store that in a DB
using a unique ID?
Any help will be greatly appriciated.
View Replies
View Related
Is anyone familiar w/ using checkbox to select which person to send a certificate to. For example, owner, user, contractor contact info is displayed on the webpage and to the left of those 3 contacts I have 3 checkboxes to designate who to send the cert to by inserting that contact_id into the cert_recip_cont_ID.
Owner_contact_id
User_Contact_id
Contractor_id
View Replies
View Related
I have succesfully captured the users login detail, but I now have a new problem I have assigned the login to a Session Variable, however when I come to use the string stored in the variable it excludes the which seperates the domain from the user name, it should be :DOMAINUSERNAME , but I am getting DOMAINUSERNAME which really is a pain. Anybody know why this is happening and how I can overcome it ?
View Replies
View Related
how i can pull the logged in user name from a computer for a web form? this is what i did to pull from the cookie when user log into my site but now i want to get request from non site users but capture non logged in users ids too.
~ <input type="text" name="EmailID" maxlength="10" size="10"
Value="<%=Request.Cookies("NPSC")("UserName")%>"
~
View Replies
View Related
I need to develop a web application in asp.net which can detect a USB device and capture its
events...
For example when a person access the web page and connects the device to his machine he shld be
able to detect the device and shld be able to read or write into it.
I wrote a java program using jusb and called that in an applet..though it worked it needed lot
of client side configurations.
My requirement is that there should not be any configurations in client side and things shld
work smoothly.
I know some one had done this in asp and javascript. but i don't know how its done.
View Replies
View Related
I would like to capture window close event, i.e. when user clicks "X" button of the browser, I would like to close all open dataabse connections.
Also, I would like this to apply when a user tries to close browser using File > Exit or when the user tries to type another website URL in the browser.
View Replies
View Related
I have an asp contact from which gets data and generates an email containing the users contact details it also send the user a confirmation email.
I was wondering if anyone could explain in simple terms how i would send the form data to be stored in a database?
I know i would have to set up a databse conenction.
how would the form fields be sent to the database?
View Replies
View Related
Is there any way to grab the HTTP_REFERER server variable in a pop up?
Example:
www.site1.com pops open www.site2.com that needs to see if it was
popped from www.site1.com
Currently, that value is empty
View Replies
View Related
i wanted to monitor the traffic coming to my site.
so i used http_referer tag to find the location from users are coming to my site.
and i found a strange thing that i got only was able to trap a few referers and not all, and that too
of a page of my site.
i couldnt find any referer from anyother site... i mean the field remain empty in my Database for most of the referers.
i wondered why is it so?
View Replies
View Related
I'm trying to retreive information using Request.ServerVariables("HTTP_REFERER"), with no success. The users arrive to the page using simple link, and without being redirected or any other way - just a simple click on a link.
It is important to say that they click on the link in one website (Hosted on server A) and arriving to another website (Hosted on server B), where I'm using the HTTP_REFERER. maybe this is the reason to my problem ?
View Replies
View Related
I've written an application that makes use of the HTTP_REFERER server variable to redirect users to a page they just came from. This has worked for everyone that's used the application except one person where they get the following error:
Response object error 'ASP 0158 : 80004005'
Missing URL
/admin_dbupdate.asp, line 10
A URL is required
View Replies
View Related
I am trying to add the http_referer to certain pages within my site but i am having a few problems, can anyone offer advise on what is wrong with my code below please:
<%
'test the user came from one of our pages
If InStr(1,Request.ServerVariables("HTTP_REFERER"),"registration.asp") = 0 OR InStr(1,Request.ServerVariables("HTTP_REFERER"),"update.asp") = 0 Then
Response.Redirect("home.asp")
end if
%>
I basically want any pages that contain a form on them to be checked that they have been submitted from within my site. The two form pages are called registration.asp and update.asp.
View Replies
View Related
I am having a little problem with the use of HTTP_REFERER I have managed to get it to work correct and as required only if I add the full URI of my site, how can I do this so that I only have to name the pages in question. An example of my code is shown below
'test the user came from one of our pages
If InStr(Request.ServerVariables("HTTP_REFERER"),"http://mydomainspace/eca/new_customer_reg.asp") = 0 Then
Response.Redirect("home.asp")
end if
Can anyone offer a solution in simple terms as I am an ASP newbie, so that I can remove the http://mydomainspace/eca and just use "new_customer_reg.asp" I currently do not have any databases and nor do i wish to yet - still learning the very basics first. I say this as I have seen several solutions that use databases.
View Replies
View Related
I am giving the following:
test = request.servervariables("HTTP_REFERER")
response.write test
It just gives me blank page and does not give me the URL. I tried request.servervariables("REMOTE_ADDR") it gives me the IP address but HTTP_REFERER is not working. What could be the reason.
View Replies
View Related
Should there be any reason to not get the referer "server variable" if I got to the page by clicking on a flash banner?
View Replies
View Related
Just wondering if anyone has found a way to grab the referring URL if the resulting page isn't from a HREF link.
To explain further:
I am creating an ASP driven weblog and am trying to avoid using the queryString to pull out the correct posts (Primarily for better search engine results). To do this I would like the user to be able to click on or type in something like
http://host/weblog/year/month/shorttitle
Under normal circumstances this would look for the default page in a folder called "shorttitle" but instead I defer this to a custom 404 error page which would strip out the URL and do a database query depending on the year, month and shorttitle.
However - this all works a treat when you click a generated link as the HTTP_REFERER is sent through in the headers, but if this is simply typed into the address bar the HTTP_REFERER is blank upon reaching the 404 page.
View Replies
View Related
Is there a way to suprress the HTTP_Referer using VBScript/ASP?
View Replies
View Related
I have some one linking to my site, that I don't want linking to my site, and I get get them to remove the link. What i'm trying to do is redirect everything from that particular domian. I would prefer to send them off my site if possible but am willing to create a dead page if I need to.
I'm sure it's rather simple but I can't seem to figure it out (after much reading and several attempts).
View Replies
View Related
I understand that Request.ServerVariables("HTTP_REFERER") is empty when the
page is redirected.Does that mean that it is also empty when redirected on client side? (Suchas location.href = ...) Actually, I do that and all I get in HTTP_REFERER is
"http://[servername]" . Is this the same problem?
View Replies
View Related
A week or so ago, I needed to find the HTTP_REFERER environment variable to check and see if a user is coming from a certain website:
If Request.ServerVariables("HTTP_REFERER")_
= "http://localhost/mydir/page1.aspx" then
response.write "Click on a menu choice"
else
response.write "check back later
end if
I have a page nested in an IFRAME (for example framepage1.aspx or ..asp), and I need to check to see if a user is coming to (not coming from ) a certain page where the framepage1.aspx is (the framepage1.aspx could appear in not only page1.aspx, but page2.aspx ,or page3). I'm not sure how to accomplish this given that the
HTTP_REFERER checks on address only incoming.
View Replies
View Related
I have the following in an ASP script:
var bounceBackPage = Request.ServerVariables("HTTP_REFERER");
Response.Write("<p>bounceBackPage: " +
bounceBackPage + ". Undefined? " +
(bounceBackPage == "undefined") + " </p>");
When I enter the page URL by itself, I expect HTTP_REFERER to be undefined.. but this is the output I get:
bounceBackPage: undefined. Undefined? false . How can it print "undefined" and still return false for bounceBackPage == "undefined"?
View Replies
View Related
I have created a feedback form that uses, among other things, the HTTP_REFERER server variable, which appears in the e-mail that gets generated when the form is submitted. I would prefer to have the form appear in a pop-up window, which is called via a javascript function. However, at least in IE 5 Win, the referer header does *not* get sent when a user clicks on the feedback link (FWIW, it does in IE 5 Mac).
My workaround has been to have the form open in a new, "regular" window (target=_blank).
Is this issue present in later versions of IE Win? Is there another approach that would allow me to have my feedback form in a pop-up window?
View Replies
View Related
A week or so ago, I needed to find the HTTP_REFERER environment
variable to check and see if a user is coming from a certain website:
If Request.ServerVariables("HTTP_REFERER")_
= "http://localhost/mydir/page1.aspx" then
response.write "Click on a menu choice"
else
response.write "check back later
end if
I have a page nested in an IFRAME (for example framepage1.aspx or
..asp), and I need to check to see if a user is coming to (not coming
from ) a certain page where the framepage1.aspx is (the
framepage1.aspx could appear in not only page1.aspx, but page2.aspx ,
or page3). I'm not sure how to accomplish this given that the
HTTP_REFERER checks on address only incoming.
View Replies
View Related
I have a basic script that allows broadband to be turned on/off from anypage on a site. What I have done is used HTTP_REFERER to redirect the user back to page they were on once the needed server variable is set.
But since Firewalls such as Norton block HTTP_REFERER variable the script is falling on its face. Currently I just redirect them to the home page is HTTP_REFERER returns blank but I'm wondering if anyone can think of a workaround or have read anywhere about one.
View Replies
View Related
I have create a website that links to other websites, using a response.redirect("URL_OF_WEBSITE") For some reason I have managed to get on top at Google, with these pages that only redirect to a website of an affiliate program of mine. The problem now is that the affiliate program thinks that Google is the referer instead of me. What can I do to prevent this.
Is there a way to somehow alter the change the HTTP_REFERER when I use Response.redirect?
This is an example: ....
View Replies
View Related