Urgent help - HTTP_REFERER

Results 1 to 3 of 3

Thread: Urgent help - HTTP_REFERER

  1. #1
    Ai Jen Guest

    Default Urgent help - HTTP_REFERER

    Hi all,<BR><BR>I need help urgently with http_referer.<BR>I have a program which works like below.<BR>1)supposed on page1, user clicks on save<BR>2)a pop-up window will appear to confirm the save and gets the url of page1 by using Request.ServerVariables("HTTP_REFERER")<BR>3)the responding code will save the url into the databse.<BR><BR>My problem is that the code is saving the url of the popup window instead of page1. How do I solve this problem??? I need it by Monday and today&#039s Saturday!<BR><BR>Thanks in advance<BR>Ai Jen

  2. #2
    Join Date
    Dec 1969

    Default RE: Urgent help - HTTP_REFERER

    Try using a hidden field to pass the variable. It sounds to me that the http_referer is being called after the window pops open.<BR><BR>If you absolutely have to, use a session variable. In your situation you can expire the session right after you use it which would be a great way to do this.<BR><BR>Rob

  3. #3
    Ai Jen Guest

    Default RE: Urgent help - HTTP_REFERER

    Hi,<BR><BR>Thanks for replying. I am using a hidden field to pass the data.<BR>&#060;input type="hidden" name="url"<BR> value="&#060;%=Request.ServerVariables("HTTP_REFER ER")%&#062;"&#062; and in the next code that gets this url and saves it to the database, I simplay use url=request.form("url") and sql statements.<BR><BR>But it does not work. I have no idea how to use a session variable but I will look it up. If you can provide more help, it&#039ll be greatly appreciated.<BR><BR>Thanks,<BR>Ai Jen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts