Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
01-16-2012, 04:03 PM #1
waht is Response.Redirect ("from") for?
Can anyone explain what the purpose of the green code and how it works?
if Strcomp(Request.Form("User"),Username,1)=0 AND Request.Form("password") = Password then
'Set the validation cookie and redirect the user to the original page.
Response.Cookies("ValidUser") = Validated
'Check where the users are coming from within the application.
If (Request.QueryString("from")<>"") then
'If the first page that the user accessed is the Logon page,
'direct them to the default page.
01-16-2012, 07:58 PM #2
What is that smiley supposed to be???
Anyway, read the comment:
If there is a "from" value in the querystring, then that's where the user will be redirect back to.
If there isn't, then the user is sent to "MyPage.asp".
Well, that's what would happen if the line with the smiley is replaced with
Response.Redirect Request("form")Be yourself. No one else is as qualified.