logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > ASP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-03-2008, 06:44 AM   #21
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

well least you figured it out

php doesnt have this issue!
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 07-07-2008, 06:07 AM   #22
rico1931
 
Join Date: Jun 2008
Location: Buffalo
Posts: 198
Default

Ya it sucks though because now here is what I have found is that I can't have more then one image linking to the login page site (ya only the login page) but then after all the other pages will hold the session variable just fine. So I come up with the round about way of just making the login page be an annoying pop up WEBpage Browser or be a second page people are redirected to with only the login form. but just in case I want to go the route of a new webpage pop up with a window screen size of only 200 x200 how would I pass the javascript or window.open container to the parent page and not continue in the child page. I will start a new thread about this because the login behavior is from dreamweaver and it ask me to just type in the redirect page in the behavior pop up. If anyone has any ideas about how to change the login code
Code:
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString <> "" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername = CStr(Request.Form("Email"))
If MM_valUsername <> "" Then
  Dim MM_fldUserAuthorization
  Dim MM_redirectLoginSuccess
  Dim MM_redirectLoginFailed
  Dim MM_loginSQL
  Dim MM_rsUser
  Dim MM_rsUser_cmd
  
  MM_fldUserAuthorization = "AUTH_LEVEL"
  MM_redirectLoginSuccess = "/SessionID2.asp"
  MM_redirectLoginFailed = "/Default.asp"

  MM_loginSQL = "SELECT AUTH_EMAIL, AUTH_PW"
  If MM_fldUserAuthorization <> "" Then MM_loginSQL = MM_loginSQL & "," & MM_fldUserAuthorization
  MM_loginSQL = MM_loginSQL & " FROM dbo.AUTH WHERE AUTH_EMAIL = ? AND AUTH_PW = ?"
  Set MM_rsUser_cmd = Server.CreateObject ("ADODB.Command")
  MM_rsUser_cmd.ActiveConnection = MM_DMICSQL_STRING
  MM_rsUser_cmd.CommandText = MM_loginSQL
  MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param1", 200, 1, 50, MM_valUsername) ' adVarChar
  MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param2", 200, 1, 50, Request.Form("Password")) ' adVarChar
  MM_rsUser_cmd.Prepared = true
  Set MM_rsUser = MM_rsUser_cmd.Execute

  If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then 
    ' username and password match - this is a valid user
    Session("MM_Username") = MM_valUsername
    If (MM_fldUserAuthorization <> "") Then
      Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
    Else
      Session("MM_UserAuthorization") = ""
    End If
    if CStr(Request.QueryString("accessdenied")) <> "" And true Then
      MM_redirectLoginSuccess = Request.QueryString("accessdenied")
    End If
    MM_rsUser.Close
    Response.Redirect(MM_redirectLoginSuccess)
  End If
  MM_rsUser.Close
  Response.Redirect(MM_redirectLoginFailed)
End If
%>
Thanks for the help.. remember its through the login behavior in DWcs3
rico1931 is offline   Reply With Quote
Old 07-07-2008, 06:34 AM   #23
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

ahh right

you shouldnt use them behaviors

its not very professional
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 07-07-2008, 06:46 AM   #24
rico1931
 
Join Date: Jun 2008
Location: Buffalo
Posts: 198
Default

Quote:
Originally Posted by davidj View Post
ahh right

you shouldnt use them behaviors

its not very professional
ya I understand that. Its a pain in the a** though and after talking to my boss thats the suggestion he gave. I bet the real deal is just how I typed up my HTML and when the page is being read its just not reading it in the right order thats why its getting messed up but he wants results now ya know and I really just want to get this done for him now so I can get my internship credits and fix it for him nicer when school starts. I may know more then and ask one of my prof face to face so we can tackle the problem. But thanks davidj for the fast response. What you guys dont sleep over there!!?!?!?!
rico1931 is offline   Reply With Quote
Old 07-07-2008, 08:35 AM   #25
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

but its not you writing the code its dreamweaver and when it goes tits up you wont know how to fix it.

i never assist those who use these wizards as i dont know how to

i am not an ASP guy anyway so i couldnt help much even if you chose to write the code yourself
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 09-15-2008, 12:38 PM   #26
amanda
Banned
 
Join Date: Aug 2008
Posts: 8
Default

thank you very much .I really appreciate your help without you this was not possible.
amanda is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:32 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com