<%@LANGUAGE="JAVASCRIPT"%> <% // *** Check if cookie exists for user, if not then set to temporary cookie for now if (Request.Cookies("tempname") =="" && Request.Cookies("username") =="") { // *** Neither are set, so set tempname var randomnumber=Math.floor(Math.random()*100001) var rand2="TEMP" + String(randomnumber); Response.Cookies("tempname")=rand2; Response.Cookies("tempname").Expires="May 10,2028"; Response.Write(Request.Cookies("tempname")); } %> <% // Set session variable to equal the correct userid, be that tempname of username cookies if (Request.Cookies("username") == "") { Session("OrridgeUserName")=Request.Cookies("tempname"); } else { Session("OrridgeUserName")=Request.Cookies("username"); } %> <% // *** Validate request to log in to this site. var MM_LoginAction = Request.ServerVariables("URL"); if (Request.QueryString!="") MM_LoginAction += "?" + Server.HTMLEncode(Request.QueryString); var MM_valUsername=String(Request.Form("username")); if (MM_valUsername != "undefined") { var MM_fldUserAuthorization=""; var MM_redirectLoginSuccess="here.asp"; var MM_redirectLoginFailed="newindex.asp"; var MM_flag="ADODB.Recordset"; var MM_rsUser = Server.CreateObject(MM_flag); MM_rsUser.ActiveConnection = MM_orridge_STRING; MM_rsUser.Source = "SELECT *"; if (MM_fldUserAuthorization != "") MM_rsUser.Source += "," + MM_fldUserAuthorization; MM_rsUser.Source += " FROM Users WHERE UserName='" + MM_valUsername.replace(/'/g, "''") + "' AND Password='" + String(Request.Form("textfield2")).replace(/'/g, "''") + "'"; MM_rsUser.CursorType = 0; MM_rsUser.CursorLocation = 2; MM_rsUser.LockType = 3; MM_rsUser.Open(); if (!MM_rsUser.EOF || !MM_rsUser.BOF) { // username and password match - this is a valid user Session("MM_Username") = MM_valUsername; if (MM_fldUserAuthorization != "") { Session("MM_UserAuthorization") = String(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value); } else { Session("MM_UserAuthorization") = ""; } if (String(Request.QueryString("accessdenied")) != "undefined" && false) { MM_redirectLoginSuccess = Request.QueryString("accessdenied"); } Response.Cookies("username")=MM_rsUser.Fields.Item("FirstName").Value Response.Cookies("username").Expires="May 10,2028" fname=Request.Cookies("username") MM_rsUser.Close(); // Response.Redirect("http://www.christie.com/pharmacies_for_sale"); } MM_rsUser.Close(); Response.Redirect(MM_redirectLoginFailed); } %> Orridge Business Sales - Home
<% var usermp; usermp = Request.Cookies("username"); // if the cookie wasn't found, ask for the name if (usermp=="") { Response.write("
Welcome, please login or sign up here

User  Password   
"); } // set the new cookie // SetCookie("username", "Matt"); // document.write(usermp); if (usermp!="") { Response.write("Welcome Back, " + usermp + ".
(if you are not " + usermp + ", please click here)

"); } %>
Orridge
 


Orridge Business Sales has recently been acquired by Christie + Co, the UK’s largest specialist business agency, providing a new range of services to the pharmacy sector and the largest selection of pharmacy businesses for sale.

Register your interest in buying a pharmacy or contact one of our regional pharmacy specialists:

Director and Head of Pharmacy: Tony Evans 0117 946 8511 tony.evans@christie.com
Scotland: Karl Clezy 0141 352 7302 karl.clezy@christie.com
North/North East and North Wales: Andrew Higson 0161 833 3311 andrew.higson@christie.com
Midlands & Thames Valley: Simon Holland-Brown 020 7227 0726 simon.holland-brown@christie.com
South/South West and South Wales: Jonathan Board 0117 946 8527 jonathan.board@christie.com
South East and East Anglia: Andrew Walker 020 7227 0737 andrew.walker@christie.com
London: Andrew Evangelou 020 8370 3114 andrew.evangelou@christie.com