%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Session("Privacy") = "Privacy and Confidentiality Notice: The information contained in this electronic mail message is intended for the named recipient(s) only. It may contain privileged and confidential information. If you are not an intended recipient, you must not copy, forward, distribute, or take any action in reliance on it. If you have received this electronic mail message in error, please notify the sender immediately."
%>
<%
Session("Reg1") = Request.Form("firstname")
Session("Reg2") = Request.Form("surname")
Session("Reg3") = Request.Form("company")
Session("Reg4") = Request.Form("address")
Session("Reg5") = Request.Form("towncity")
Session("Reg6") = Request.Form("county")
Session("Reg7") = Request.Form("postcode")
Session("Reg8") = Request.Form("tel")
Session("Reg9") = Request.Form("fax")
Session("Reg10") = Request.Form("email")
Session("Reg11") = Request.Form("question")
Session("MM_Register") = 0
%>
<%
If (Request.Form("firstname")) <> ("") AND (Request.Form("surname")) <> ("") AND (Request.Form("address")) <> ("") AND (Request.Form("towncity")) <> ("") AND (Request.Form("postcode")) <> ("") AND (Request.Form("tel")) <> ("") AND (Request.Form("email")) <> ("") AND (Request.Form("question")) <> ("") Then
Session("MM_Register") = 1
End if
%>
<%
' *** Do Not Cache Page
' *** MagicBeat Server Behavior - 2005 - by Jag S. Sidhu - www.magicbeat.com
Response.Expires=-1000
Response.CacheControl="no-cache"
%>
<%
Dim CompanyRecordset
Dim CompanyRecordset_numRows
Set CompanyRecordset = Server.CreateObject("ADODB.Recordset")
CompanyRecordset.ActiveConnection = MM_TPNConnection_STRING
CompanyRecordset.Source = "SELECT * FROM TPNCompany"
CompanyRecordset.CursorType = 0
CompanyRecordset.CursorLocation = 2
CompanyRecordset.LockType = 1
CompanyRecordset.Open()
CompanyRecordset_numRows = 0
%>
<%
' *** 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("userid"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization="TPNUserLevel"
MM_redirectLoginSuccess="tracking.asp"
MM_redirectLoginFailed="faillogin.asp"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_TPNConnection_STRING
MM_rsUser.Source = "SELECT *"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM TPNUsers WHERE TPNUserEmail='" & Replace(MM_valUsername,"'","''") &"' AND TPNUserPWD='" & Replace(Request.Form("userpwd"),"'","''") & "'"
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
Session("TPNUserName") = CStr(MM_rsUser.Fields.Item("TPNUserFirstName").Value & " " & MM_rsUser.Fields.Item("TPNUserSurName").Value)
Session("TPNUserID") = (MM_rsUser.Fields.Item("TPNUserID").Value)
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
%>
<%
' *** Validate request to log in to this site.
MM_MemLoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_MemLoginAction = MM_MemLoginAction + "?" + Request.QueryString
MM_valUsername=CStr(Request.Form("memid"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization="TPNUserLevel"
MM_redirectLoginSuccess="member.asp"
MM_redirectLoginFailed="faillogin.asp"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_TPNConnection_STRING
MM_rsUser.Source = "SELECT *"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM TPNUsers WHERE TPNUserEmail='" & Replace(MM_valUsername,"'","''") &"' AND TPNUserPWD='" & Replace(Request.Form("mempwd"),"'","''") & "'"
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
Session("TPNUserName") = CStr(MM_rsUser.Fields.Item("TPNUserFirstName").Value & " " & MM_rsUser.Fields.Item("TPNUserSurName").Value)
Session("TPNUserID") = (MM_rsUser.Fields.Item("TPNUserID").Value)
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
%>
<%
' *** Insert Record: set variables
If (CStr(Request("MM_insert")) = "EmailForm") Then
End if
%>
<%
' *** Validate request to log in to this site.
MM_NewsUpdate = Request.ServerVariables("URL")
MM_valEmail=CStr(Request.Form("updateemail"))
If MM_valEmail <> "" Then
Session("Privacy") = "Privacy and Confidentiality Notice: The information contained in this electronic mail message is intended for the named recipient(s) only. It may contain privileged and confidential information. If you are not an intended recipient, you must not copy, forward, distribute, or take any action in reliance on it. If you have received this electronic mail message in error, please notify the sender immediately."
Dim Updatebodycopy
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "mail.thepalletnetworkltd.co.uk"
JMail.Sender = Request.Form("updateemail")
JMail.Subject = "TPN Newletter Subscription Request"
JMail.AddRecipient "mail@thepalletnetworkltd.co.uk"
JMail.AddRecipientCC "mail@thepalletnetworkltd.co.uk"
Updatebodycopy = "Dear TPN," & vbCrLf & vbCrLf
Updatebodycopy = Updatebodycopy & "I would like to subscribe to your newsletter." & vbCrLf & vbCrLf
Updatebodycopy = Updatebodycopy & "My email address is " & (Request.Form("updateemail")) & vbCrLf & vbCrLf
Updatebodycopy = Updatebodycopy & Session("Privacy")
JMail.Body = Updatebodycopy
JMail.Priority = 3
JMail.Execute
JMail.Close()
End If
%>
<%
' *** Validate request to log in to this site.
MM_NewsUnsub = Request.ServerVariables("URL")
MM_valEmail=CStr(Request.Form("unsubemail"))
If MM_valEmail <> "" Then
Session("Privacy") = "Privacy and Confidentiality Notice: The information contained in this electronic mail message is intended for the named recipient(s) only. It may contain privileged and confidential information. If you are not an intended recipient, you must not copy, forward, distribute, or take any action in reliance on it. If you have received this electronic mail message in error, please notify the sender immediately."
Dim Unsubbodycopy
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "mail.thepalletnetworkltd.co.uk"
JMail.Sender = Request.Form("unsubemail")
JMail.Subject = "TPN Newletter Unsubscription Request"
JMail.AddRecipient "mail@thepalletnetworkltd.co.uk"
JMail.AddRecipientCC "mail@thepalletnetworkltd.co.uk"
Unsubbodycopy = "Dear TPN," & vbCrLf & vbCrLf
Unsubbodycopy = Unsubbodycopy & "I would like to be removed from your mailing list for your newsletter." & vbCrLf & vbCrLf
Unsubbodycopy = Unsubbodycopy & "My email address is " & (Request.Form("unsubemail")) & vbCrLf & vbCrLf
Unsubbodycopy = Unsubbodycopy & Session("Privacy")
JMail.Body = Unsubbodycopy
JMail.Priority = 3
JMail.Execute
JMail.Close()
End If
%>
<%
dim todaysDate
todaysDate=now()
%>
TPN - Contacts
To stay
updated with
The Pallet Network news just click on the button below.
<% If (Session("MM_Register")) = (0) Then 'script %>