%
' Property of and written by Adam Ford -->
option explicit
%>
<%
dim bolEdit
boledit = false
if not isempty(request.querystring("hid")) then
bolEdit = true
end if
%>
<% if bolEdit then response.write("Edit House Form") else response.write("Upload House Form") end if %>
<%
if boledit then
%>
<%
dim strFilename
dim strComments
dim strMapLink
dim intCID
dim intCIID
dim strAddress
dim lonPrice
dim intCTID
dim intFBathrooms
dim intHBathrooms
dim intBedrooms
dim strGarage
dim intSFeet
dim intSID
bolEdit = true
intHID = objRS("HID")
strFilename = objRS("Filename")
strComments = objRS("Comments")
strMapLink = objRS("MapLink")
intCID = objRS("CID")
intCIID = objRS("CIID")
strAddress = objRS("Address")
lonPrice = objRS("Price")
intCTID = objRS("CTID")
intFBathrooms = objRS("FBathrooms")
intHBathrooms = objRS("HBathrooms")
intBedrooms = objRS("Bedrooms")
strGarage = objRS("Garage")
intSFeet = objRS("SFeet")
intSID = objRS("SID")
end if
%>
<%
on error resume next
if err.number <> 0 then
dim strPage
strPage = "dsp_houseform.asp"
%>
<%
end if
%>
<%
if bolEdit then
intHID = empty
strFilename = empty
strComments = empty
strMapLink = empty
intCID = empty
intCIID = empty
strAddress = empty
lonPrice = empty
intCTID = empty
intFBathrooms = empty
intHBathrooms = empty
intBedrooms = empty
strGarage = empty
intSFeet = empty
intSID = empty
end if
intSelected = empty
bolEdit = empty
%>