Request.Servervariables("HTTP_REFERER") Versus BACK Button On Browser

When my webserver does not process a user's change because of an invalid password, I inform the user and I want to present them a button for a retry:

<TR id=continuebuttonrow>
<td width="05%">&nbsp;</td>
<TD width="90%" align=center valign=middle colspan=2>
<BUTTON TYPE=BUTTON
ONCLICK="location.href='<% =Request.ServerVariables("HTTP_REFERER") %>';"
class=btnParms name=btnContinue ID="Button3">Try Again (Back)</BUTTON>
</td>

Yet if this button is clicked, they go back to the server and the page is refreshed with original values.

If I click the browser's BACK button (rather than my button above), I go back to the page (from cache I guess) I want (because it contains the user changes). Here I can correct the password without having to rekey the changes.

So, what is the Request.Servervariable needed for the equivalent of the BACK button?

View Replies


ADVERTISEMENT

Possble To Retain Orig Request.ServerVariables("HTTP_REFERER") Thru Svrl Refreshes?

I have a "Email this page to a friend" form that submits to itself and contains the hidden input value="<%= Request.ServerVariables("HTTP_REFERER") %>".

The value="<%= Request.ServerVariables("HTTP_REFERER") %>" is to obtain the URL of the page that the person wishes to send.

The problem is, if someone creates an error in any of the input fields, the page submits to itself again and displays the errors. When this happens, the original HTTP_REFERER url address is lost and now replaced with the url of the "Email this page to a friend" page.

Is there a way to retain the original HTTP_REFERER value even though the user refreshes the page?

View Replies View Related

Not Displaying Request.ServerVariables("HTTP_REFERER")

Found this funny error on a clients computer the "request.ServerVariables("HTTP_REFERER")" does not show any information on the previous address of the last webpage visited. The computer does how every show the details of "request.ServerVariables("ALL_HTTP")".

I can't seem to be able to duplicate the problem on my computer. Does any one have any ideas why this might be happening?

View Replies View Related

Using Browser Back Button

On a current website, when I submit a search from a form, the page with results are shown. If I then click page 2 of the results I get page 2 no problems. The PROBLEM then is a user clicking the browser back button. When this is pressed IE shows this error which makes sense but sites like play.com dont have this problem. Quote:

Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button.

View Replies View Related

Request.ServerVariables("HTTP_REFERER")

I am trying to write a small banner system and I am trying to get the page from where the banner is displayed. I have tried this piece of code:-

page = Request.ServerVariables("HTTP_REFERER")

however with IE6, it does not work and gives me a blank variable.

Is there a way round this?

View Replies View Related

Disable Back Button Of Browser.

How can I disable back button of a browser in other words not allow the user to go back to the page from where they have come to this page when they click back button.

View Replies View Related

Click On Browser's Back Button

when my asp page displayed in browser..and suppose i click on back button of browser then it should not go to back page. in this case the same page should be always display.
how can we do this?

View Replies View Related

Disable Browser Back Button

I know you can not disable the browser back button but I have a script that grades online tests and when they click the, Grade test button, it works great. But if you click the back button, you can go back to the page and change the answers to the questions. So like this, if one failed the test they could simply click the back browser button and redo the test.

What I need is away to not disable the back button but maybe if they click the back button to take them back to the registration page to register for the test again. I have tried a few lines of code with "no-cache" and it would show expired but I prefer a redirection to the registration page if posible. how this could be done when clicking on the browser back button?

View Replies View Related

Submit Button Versus Regular Button

I want to understand the difference between submit button and regular button: <input type="submit"> and <input type="button">. My understanding is that submit button will send the entire HTML form to the web server, but regular button won't.

I have a problem that needs to pass HTML elements data back and forth in several ASP pages. I am using regular button to do that. But what's the approaches?

View Replies View Related

Back Button : : How To Fill Values Back

I have a form that submits values to an asp page. If their is an error on the asp page that is called and you go back to the first page with the form. The values are not in the form.

How can I set the value back into form without the user having to retype them in? If I use hidden fields on the first asp page and I go back to that page wouldn't the values for the hidden fields be empty as well?

View Replies View Related

Request.ServerVariables

Request.ServerVariables(&quot;HTTP_REFERER&quot;)can that be spoofed?

View Replies View Related

Request.ServerVariables

I am trying to use Request.ServerVariables("SCIPT_NAME") - this is
ok normally, but when I try to use the script behind SSL - it does not
pick up the full path to where I am - eg:

https://sslrel.com/sslcert.mysite.co.uk/Default.asp

Request.ServerVariables("SCIPT_NAME") in this file, would show:
https://sslrel.com/Default.asp
Which makes all my redirects etc - not work!
Is this a known feature of SSL, or has it just been setup incorrectly?

View Replies View Related

Request.ServerVariables

Our intranet was running on a Windows NT4 server using IIS4. We have just upgraded to Windows 2000 & IIS 5 but we are now having a few problems.
A lot of our code uses Request.ServerVariables("auth_user") to get the users logon name. This used to work fine but now it doesn't work at all. We don't get an error, just a blank value.
I have searched around for help but it seems that there is no reason why it shouldn't work, which makes me think that maybe it's not the code that's the problem.

View Replies View Related

Request.ServerVariables

I have a asp page that use the request.ServerVariables("Logon_user"). I'm used fine but then i need to restart the web server. After that request.ServerVariables("Logon_user") has no value, a null string.Why?and How can resolve this problem?

View Replies View Related

Request.ServerVariables

I have had issues with Request.ServerVariables("HTTP_REFERER") because it seems that in many cases it returns an empty string or NULL value. I use it when it works correctly to enable my scripts to be somewhat universal, not requiring hard coded values or "email an associate" scripts etc.

I just noticed that a script I'm working on does work in FireFox but not in IE. I've run the script in XPPro as well as Win2K Server to rule out it being a local setup problem. It seems that if I use Javascript to open an new window FireFox recognizes the referer but IE does not.

I realize this is probably a difference in the way IE handles the Javascript function of opening the window but as it is a Request.ServerVariable that is not being passed maybe someone else in ASP-land has run into it and knows a fix.

View Replies View Related

Request.ServerVariables

i want to know the usage of Request.ServerVariables.I'm not sure this is really a ASP question,so redirects to a more appropriate newsgroup are welcome.

I have a variable that is being passed to me through HTTP headers "Test."I am able to see this variable and its value when I use Request.ServerVariables("ALL_HTTP").

when I iterate through Request.ServerVariables using a "For Each key in Request.ServerVariables" the key of "Test" comes up.However, when I use Request.ServerVariables("Test"), the value returned to me is always empty.

View Replies View Related

Request.ServerVariables

I am trying to ensure that Request.ServerVariables can not be spoofed. Does anyone know?

View Replies View Related

Request.ServerVariables

Is there a way to find the url of a page, in html page, and not in asp page? Anything like Request.ServerVariables("URL") in jscript?

View Replies View Related

Request.ServerVariables

I want to have one of my asp pages ONLY load if someone reached it by my main page. I am new to ASP, but I think I have the theory down, I just need help with the actual commands, syntax, etc... Here is what I got so far, any suggestions?

ref=Request.ServerVariables("HTTP_REFERER")
If ref=http://website.com/main_page.htm then goto continue
Else goto end

continue()
..... run the code on this page .....

end()
Response.Write "You Have Not Reached This Page From Our Main Site"

View Replies View Related

Request.ServerVariables

I have an ASP page which collects the "logon_user" and assigns different permissions based on their "names". It is working properly under Windows 2000/XP, but Windows 9? is NOT recognizing. Could anyone tell me what I have missed? Updating new versions or changing my code?

View Replies View Related

Request.ServerVariables

I have written an application that catches the logon user's name in order to assign different levels of permissions, but the users logon under different OS (Windows versions).

the "logon_user" is recognized under Windows 2000/XP but not Windows9x. The server is under Windows 2000 which connects all kinds of workstations with different OS. Do I need to update the pathes of Windows9x or I need to use different Server variable to catch up the logon user's name?

View Replies View Related

Request.ServerVariables

I am using Request.ServerVariables("HTTP_REFERER") to refer back in some pages but on clint side some pages refered back and some show error page not found. I dont know whats wrong with code.

retstr = Request.ServerVariables("HTTP_REFERER")
if instr(1,ucase(retstr),"STEPPAGE") > 0 then
returl="wm_steppage.asp?step=2"
else
returl="wm_mainpage.asp?step=2"
end if

Response.Redirect(returl)

View Replies View Related

Request.ServerVariables

We have the Request.ServerVariables("SERVER_NAME") used in a classic ASP page using IIS 6.

It used to return our website name: www.xxx.name.this when using IIS 5, now it is returning the IP address when we type the full www. url.

View Replies View Related

Request.ServerVariables With A Variable.

<%
If Request.ServerVariables("REMOTE_ADDR") = "12.5.14.%" Then
%>

does anyone know how i can make my page only show info if they come from
a certain ip RANGE? not a static ip?

is there a wildcard i can put above instead of % to make that work for all 255 choices of
ips?

View Replies View Related

Request.servervariables Question

i know that HTTP_REFERER will grab the referring page, but here is my question. say someone has clicked a link from google to get to www.site.com/somepage.html, how can i get this url instead of the refering google page?

View Replies View Related

Request.ServerVariables Issue

I am running Server 2003 and ASP. I used the following code to loop through the variable collection:

for each obj in Request.ServerVariables
response.write "Object Name: " & obj & "<BR>" & "Object Value: " & Request.ServerVariables(obj) & "<BR><BR>"
next

I got the list of all the possible objects as expected, but the majority of the values were blank. I am designing my site so that there is a seemless login capability. When you log into the domain, your credentials are verified through NT. I was going to use one of the available server variables to grab the user name for login purposes, but found all the values blank.

Is there a known bug/issue? Is there a configuration setting in the IIS MMC that I have overlooked that will allow those values to be tracked by the server?

View Replies View Related

ServerVariables - Request Only Part Of The URL

I am coding a login system with login form etc. and when users are denied access to a secure page within the secure area, I want to obviously send them to the login page to check who they are and check they are allowed to view the secure content of the site.

The problem I am having is that currently, if a user is denied access to a secure page, they are sent to the login page. Once they are granted access, they should be sent back to the page they were originally trying to view and not to the main menu.

(The secure area has lots of pages and users would not be happy if they had to trawl through hundreds of pages to try and find what they wanted.

I know I need to use the ServerVariables collection to retrieve the ("URL"), but I dont want to just use this as a querystring parameter when I send a user to the login page.

This would be insecure because someone out there would find my little login script and start using it on their own site by sending users to my login script to login, and then using the querystring parameter to redirect the user back to their own site.

All I want to do is select the part of the URL after the http://www.somedomainname.co.uk/manager/ part. I cannot use a Left select or right select option because my login script will be put onto lots of different websites, and I would have to change the Left select on each different site.

View Replies View Related

Similar To Request.ServerVariables

Is it possible with 'classic' ASP to find out the SERVER_SOFTWARE of a remote server.
I wish to have a form where people can enter their domain name and then have a page that based on the form post determine what type of hosting the domain is using.

View Replies View Related

Request.ServerVariables Coming Up Empty?

A few days ago all my Request.ServerVariables began coming up empty. I was using Request.ServerVariables("AUTH_USER") for basic authentication but now its useless. Our server administrator tells me he installed some "patches" last week but doesn't think he caused the problem. All I can say is that before the patch they worked fine. Anyone have any ideas on where to look for a solution?

View Replies View Related

Detecting Firefox With Request.servervariables

Can I use request.servervariables("HTTP_USER_AGENT") to determine if the user has Firefox or Internet Explorer? Is the return string differentiated enough?

View Replies View Related

Sending Message Back To Browser

I have a form (on server #1) that is filled out by the user and it sends the info from the form to another server (server #2), adding it into an Access table. How do I direct a response back to the user from that asp page on server #2?

View Replies View Related

Request.Form("Field Name") Versus Request.QueryString("Field Name")

I want to know what's the differences between

Request.Form("Field Name") and
Request.QueryString("Field Name")

OR they function exactly the same, which is to return the value of the
field??

View Replies View Related

Browser Refresh/Back/Forward Webpage...

I have never done the ASP programming yet but I want to hear the logic of the programming and see the sample code so I can have a better idea of how it work...

I have noticed that on one of hte ASP website, it was able to detect whether I did the back/forward button and blocked it.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved