<!--- #include file= "includes/connectionstring.asp" -->
<html>
<head>
<title>Allsop & Co Registration</title>
<link REL="stylesheet" TYPE="text/css" HREF="../css/styleR.css">
</head>
<body>
<script LANGUAGE="JavaScript">
<!--
function VerifyData(frmName)
{
var sEmail,sFind,iGSpace,iGAmp,DataChecked;
DataChecked = frmName.DataProtection.checked
if (frmName.username.value == "")
{
alert("Please enter your \"Name\".");
frmName.username.focus();
return(false);
}
sEmail = frmName.email.value;
if (sEmail == "")
{
alert("Please enter a value for the \"E-mail\" field.");
frmName.email.focus();
return (false);
}
else
{
sFind = " ";
iGSpace = sEmail.search(sFind);
sFind = "@";
iGAmp = sEmail.search(sFind);
if (iGSpace != -1 || iGAmp == -1)
{
alert("Please check the E-mail address, it is invalid.");
frmName.email.focus();
return (false);
}
}
if (DataChecked)
{
}
else
{
//alert("Sorry Unless you agree to the Data Protection Act we can not register you.");
//return(false);
}
return(true);
}
-->
</script>
<%
Dim conn
Dim strConnect
Dim location
'use this OR preferably include it in the #includes file - see line 1 above
strConnect = "Provider=SQLOLEDB; Data Source=yourIPaddress; Initial Catalog=yourDBname; User ID=yourSQLusername; Password=yourSQLpassword; Network Library=dbmssocn;"
Set conn=Server.CreateObject ("ADODB.Connection")
conn.Open strConnect
'try this if the previous ASP got here by: memberregister.asp?id=123
id = Request.QueryString("userid")
'or this if you passed it thru as a hidden input field on the previous submission.
id = Request.Form("userid")
Set objrsfin = Server.CreateObject ("ADODB.recordset")
objrsfin.Open "UserDetails", strConnect,2,3,2
objrsfin.find "userid ="&id
'pass the value you want to show into a variable
objrsfin("location") = location
%>
<table border="0" cellPadding="1" cellSpacing="1" style="WIDTH: 550px" width="550">
<tr>
<td colspan=2>
<H1> Welcome to the Allsop & Co online auction catalogue </H1>
<H5> Complete the form below to register and receive the following benefits :-</H5>
<ol>
<li>
Notification of availability of online catalogue by email.
</li>
<li>
Access to the <font color="#2D5E86"><b>online catalogue</b></font> before the paper catalogue is released.
</li>
<li>
Receive <font color="#2D5E86"><b>guide prices</b></font> and <font color="#2D5E86"><b>results</b></font> automatically by e-mail
</li>
<li>
Perform and save search criteria on an Auction by Auction Basis.
</li>
</ol>
</td>
</tr>
<form method="post" action="memberregister.asp" onSubmit="return VerifyData(this)">
<tr>
<td> Name </td>
<td> <input name="username" size="40" > </td>
</tr>
<tr>
<td> E-mail </td>
<td> <input name="email" size="40" > </td>
</tr>
<tr>
<td> I am based in </td>
<td>
<select size="1" name="Location">
<!--this will show the saved data first (selected), it will be duplicated if this value exists in the hard coded list, eg. if it's 'UK'-->
<option value="<%Response.Write(location)%>" selected="selected"><%Response.Write(location)%></option>
<!--comment ends-->
<option selected value="UK">UK</option>
<option value="Europe">Europe</option>
<option value="Middle East">Middle East</option>
<option value="Africa">Africa</option>
<option value="Asia">Asia</option>
<option value="Far East">Far East</option>
<option value="Americas">Americas</option>
<option value="Australasia">Australasia</option>
</select>
</td>
</tr>
<tr>
<td> I am a </td>
<td>
<select size="1" name="buyertype">
<option selected value="Private">Private Investor</option>
<option value="Corporate">Corporate Investor</option>
<option value="Agent">Agent / Intermediary</option>
</select>
</td>
</tr>
<tr>
<td> I am Interested in </td>
<td>
<input type="radio" name="propertytype" Value="C"> Commercial
<input type="radio" name="propertytype" Value="R"> Residential
<input type="radio" name="propertytype" Value="B" checked> Both
</TD>
</tr>
<tr>
<td colspan = 2>
If you <u>do not</u> wish Allsop & Co to pass your contact details to Allsop Group Companies and <u>do not</u> wish those group companies to provide you with more information about investing in property tick the box
<input type="checkbox" name="DataProtection" value="ON">
</td>
</tr>
</table>
<input type="image" src="../imagesx/Buttons/Register.gif" value="Register Now" id="submit1" name="submit">
</FORM>
</td>
</tr>
</table>
<script LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
//<!-- Cloak
//{
// InfoWindow = window.open('regist.htm','InfoWin','scrollbars=yes,width=400,height=300');
//}
// un-cloak -->
</script>
</body>
</html>