<%@LANGUAGE="VBSCRIPT"%> <% IF (Request.Form("rememberme")="yes") then Response.Cookies("RentSpain")("Username")=Request.Form("Username") Response.Cookies("RentSpain")("Password")=Request.Form("Password") Response.Cookies("RentSpain")("RememberMe")="yes" Response.Cookies("RentSpain").Expires=date+90 Else Response.Cookies("RentSpain").Expires=date-1 END IF %> <% ' *** Validate request to log in to this site. MM_LoginAction = Request.ServerVariables("URL") If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString MM_valUsername=CStr(Request.Form("username")) If MM_valUsername <> "" Then MM_fldUserAuthorization="AccessLevel" MM_redirectLoginSuccess="members/MAMain.asp" MM_redirectLoginFailed="login.asp?valid=FALSE" MM_flag="ADODB.Recordset" set MM_rsUser = Server.CreateObject(MM_flag) MM_rsUser.ActiveConnection = MM_oviatt_STRING MM_rsUser.Source = "SELECT Username, Password" If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization MM_rsUser.Source = MM_rsUser.Source & " FROM tbl_Logons WHERE Username='" & Replace(MM_valUsername,"'","''") &"' AND Password='" & Replace(Request.Form("password"),"'","''") & "'" MM_rsUser.CursorType = 0 MM_rsUser.CursorLocation = 2 MM_rsUser.LockType = 3 MM_rsUser.Open 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 false 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 %> Want to Rent Spain - Members Login
 
 
 
 
 
 
 

Want to Rent Spain?

 
Search for a Spanish rental property
register your property for rental
members login area
Want to Rent Spain Home Page
How to Contact Us
Car Hire in Spain
Flights to Spain
The Links Page
 
 
   
Username: " size="20">
Password: " size="20">
Remember me?
 
<% IF (Request.Querystring("valid")="FALSE") then %> You have entered either an incorrect Username or Password. Please try again. <% End If %>
 
Forgotten your password? - click here
 
 
 
 
 

 

© Copyright 2004 all rights reserved wanttorentspain.com - design and hosting www.pipm.com