Please can somebody help. I want to create a form by where there is a drop down box (each selection corresponds with the field in a table in MS Access) and a text entry fiels to enter additional search criteria. This is my code...
<%
view = request.querystring("view"
' set up database conection
' this connection does not require an ODBC reference
path = Trim(Server.MapPath("/fpdb")
conn_string = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" + path + "\images.mdb"
Set con = Server.CreateObject("ADODB.Connection"
con.open conn_string
if view = "post" then
text = "reference goes here"
end if
%>
<html>
<head>
<%
if view="upload" then
response.write("<meta http-equiv='refresh' content='4; url=images.asp?view=read'>"
end if
%>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
</SCRIPT>
<title></title>
</head>
<body vlink="#0000FF" alink="#0000FF">
<p align="center"><b><a href="../image%20database/IMAGE%20Scan.asp?view=read"><img border="0" src="../image%20database/imagedb.jpg"></a></b></p>
<p align="center"> </p>
<%
if view= "read" then
search = request.querystring("filter"
' ------- if no filter show all records
if search="" then
mode="full"
mySQL = "SELECT top 100 * FROM pic_table ORDER BY id desc;"
' ----- if filter set to specific words then special SQL applies
elseif search="PRESETSEARCH_TOP200" then
mode="filtered"
mySQL = "SELECT top 200 * FROM pic_table ORDER BY id desc;"
elseif search="PRESETSEARCH_TOP350" then
mode="filtered"
mySQL = "SELECT top 350 * FROM pic_table ORDER BY id desc ;"
elseif search="PRESETSEARCH_TOP500" then
mode="filtered"
mySQL = "SELECT top 500 * FROM pic_table ORDER BY id desc;"
else
' ------- show filtered recordset only
search="%"+search+"%"
mode="filtered"
mySQL = "SELECT * FROM pic_table where cadastre like " & chr(39) &cstr(search) & chr(39)&" or id like " & chr(39) &cstr(search) & chr(39)&" or details like " & chr(39) &cstr(search) & chr(39) &" or keywords like " & chr(39) &cstr(search) & chr(39)&" or author like " & chr(39) &cstr(search) & chr(39)&" ORDER BY id desc;"
end if
sql1 = "SELECT DISTINCT id,cadastre,author,details,keywords FROM [pic_table] where"
if field="id" then
sql2=" [pic_table]." & cstr(field) & " = " & cstr(data)
elseif field="cadastre" then
sql2=" [pic_table].[cadastre] like '%"& cstr(data)& "%'"
elseif field="author" then
sql2=" [pic_table].[author] like '%"& cstr(data)& "%'"
elseif field="details" then
sql2=" [pic_table].[details] like '%"& cstr(data)& "%'"
elseif field="details" then
sql2=" [pic_table].[details] like '%"& cstr(data)& "%'"
else
sql2=" [pic_table]." & cstr(field) & " like '" & cstr(data) & "%'"
end if
sql3=" Order by [Cadastre];"
sql = sql1 & sql2 & sql3
Set rs = Server.CreateObject("ADODB.Recordset"
rs.Open mySQL, con, 0, 1
%>
<hr>
<p align="center"><font face="Tahoma" size="2" color="#800000">Options: </font><font face="Tahoma" size="2"><b><a href="../image%20database/IMAGE%20Scan.asp?view=read">Image
Quick Scan</a> <a href="for a Reference</a> <a href="the database</a></b></font>
<hr>
<p align="center"> <%if mode="filtered" then%>
<font face="Tahoma" size="2"><a href="../image%20database/IMAGE%20Scan.asp?view=read"><img border="0" src="../images/blinktriangle.gif" alt="You are currently viewing a filtered list from your previous search.... click on this to return to main IMAGE DATABASE page" align="left"></a></font>
<P align="center"> <font face="Verdana" size="1" color="#99A6FB">
...you are currently viewing a filtered list</font><font face="Verdana" size="1" color="#99A6FB">...<br>
<br>
[<a href="]
[<a href="../image%20database/IMAGE%20Scan.asp?view=read">QUICK SCAN</a>]<br>
</font><%end if%><br>
<%if mode<>"filtered" then%><font face="Verdana" size="1" color="#99A6FB">Showing latest
100
images uploaded...</font><%end if%>
<font color="#808080" face="Arial" size="3"><br>
</font>
<%
do until rs.EOF
new_date=rs("posted"
%>
</P>
<div align="center">
<center>
<table width="625" height="20" cellpadding="0">
<tr>
<td width="1" bgcolor="#FCFFF0" bordercolor="#99A6FB" rowspan="4" align="center" style="border: 1 solid #99A6FB"><font color="#800000" size="2" face="Tahoma"><a href="IMAGE_VIEW.asp?view=<%=rs("id"%>"><img src="../NetVisual/thumbnails/thmb_<%=rs("piclocation"%>" width="100" bgcolor="#C9D5F5" 24" height="100" alt="<%=cstr(rs("id")%>" align="center"></a></font></td>
<td width="295" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB"><font face="Verdana"><font size="2" color="#C0C0C0">Image
ID:</font><font face="Tahoma" size="2" color="#808080"> </font><a href="IMAGE_VIEW.asp?view=<%=rs("id"%>"><font face="Tahoma" size="2" color="#3F73ED"><b><%=rs("id"%></b></font></a></font><font face="Tahoma" size="2" color="#3F73ED"><b> </b></font></td>
<td width="504" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB" rowspan="2"><font size="2" color="#C0C0C0" face="Verdana">Details</font><font face="Verdana"><font size="2" color="#C0C0C0">:</font><font face="Tahoma" size="2" color="#808080"> </font></font><font face="Tahoma" size="1" color="#008000"><%=rs("details"%></font><font face="Tahoma" size="2" color="#3F73ED"><b> </b></font></td>
</tr>
<tr>
<td width="295" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB"><font face="Verdana"><font size="2" color="#C0C0C0">Cadastre:</font><font size="2" face="Tahoma" color="#808080">
</font><span style="text-transform: uppercase"><font size="2" face="Tahoma" color="#008080">
<%=rs("cadastre"%></font></span></font></td>
</tr>
<tr>
<td width="295" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB"><font face="Verdana"><font size="2" color="#C0C0C0">Date
Uploaded:</font><font size="2" face="Tahoma" color="#808080"> </font><font size="2" face="Tahoma" color="#008080"> <%=rs("posted"%></font></font></td>
<td width="504" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB" rowspan="2"><font size="2" color="#C0C0C0" face="Verdana">Keywords</font><font face="Verdana"><font size="2" color="#C0C0C0">:</font></font><font face="Tahoma" size="1" color="#008000"><%=rs("keywords"%></font><font face="Tahoma" size="2" color="#3F73ED"><b> </b></font></td>
</tr>
<tr>
<td width="295" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB"><font face="Verdana"><font size="2" color="#C0C0C0">User
ID:</font><font size="2" color="#808080"> </font><font size="2" face="Tahoma" color="#008080"><%=rs("author"%></font></font></td>
</tr>
<tr>
<td width="265" bgcolor="#FFFFFF" bordercolor="#99A6FB" align="center" colspan="2">
<p align="center"> </p>
</td>
</tr>
<%
rs.movenext
loop
rs.close
%>
</table>
</center>
</div>
<p> </p>
<%elseif view = "filter" then
%>
<div align="center">
<table border="0" width="511">
<tr>
<td width="503">
<p align="center"><b><font face="Tahoma" color="#3F73ED" size="2">Select
a category from the drop-down box and enter your search criteria...</font></b>
<center>
<form method="GET" action="IMAGE.asp" name="FrontPage_Form1" target="_self">
<p align="center"><select size="1" name="D1">
<option value="Cadastre" selected>Cadastre</option>
<option value="ID">ID</option>
<option value="Author">Author</option>
<option value="Details">Details</option>
<option value="Keywords">Keywords</option>
</select><input type="text" name="view" size="6" value="read" style="color: #FFFFFF; position: absolute; z-index: -3; font-family: Abadi MT Condensed; font-size: 8pt; background-color: #FFFFFF; left: 575; top: 20"><input type="text" name="filter" size="37"><input type="submit" value="Search" name="button1"></a></p>
<p align="center">
</p>
<p align="center"><br>
<font color="#000080">
<b><font size="2" face="Tahoma"><span style="letter-spacing: 3pt">-
Special
Searches-</span></font>
</b></font>
</p>
<p align="center"><font color="#99A6FB" size="2" face="Tahoma"><a href="../image%20database/image%20scan.asp?view=read&filter=PRESETSEARCH_TOP200"><span style="font-variant: small-caps">latest
200</span></a></font><font face="Tahoma" size="2"><font color="#99A6FB" size="2" face="Tahoma"><a href="../image%20database/image%20scan.asp?view=read&filter=PRESETSEARCH_TOP350"><span style="font-variant: small-caps"><br>
latest 350<br>
</span></a><a href="../image%20database/image%20scan.asp?view=read&filter=PRESETSEARCH_TOP500"><span style="font-variant: small-caps">latest</span></a><span style="font-variant: small-caps"><a href="../image%20database/image%20scan.asp?view=read&filter=PRESETSEARCH_TOP500">
500</a></span></font><br>
</font></p>
<p align="center"><font face="Tahoma" size="2"><a href="../image%20database/IMAGE_USER.asp?view=filter">Top
100 for specific User ID</a></font></p>
<p align="center"><font face="Tahoma" size="2"><a href="../image%20database/GroupSearch.htm">View
images from an Upload Group</a></font></p>
<p align="center"> </p>
<p align="center"> <a href="../image%20database/IMAGE%20Scan.asp?view=read"><font face="Tahoma" size="2"><b>Go to
Image Quick Scan</b></font></a></p>
</form>
</center>
</table>
</div>
<p>
<%
else
'error trap if nothing selected but got here by mistake - eg no view value after .asp in url
if view="" then
view="0"
end if
mySQL = "SELECT * FROM pic_table where id="
mySQL=mySQL + cstr(view)
mySQL=mySQL + " ORDER BY id desc"
Set rs = Server.CreateObject("ADODB.Recordset"
rs.Open mySQL, con, 0, 1
%>
</p>
<p>
</p>
<div align="center">
<center>
<table border="1" width="791" height="104">
<tr>
<td width="102" rowspan="4" height="98">
<p align="center"><font color="#800000" size="2" face="Tahoma"><a href="IMAGE_VIEW.asp?view=<%=rs("id"%>"><img src="../NetVisual/thumbnails/thmb_<%=rs("piclocation"%>" width="100" bgcolor="#C9D5F5" 24" height="100" alt="<%=rs("piclocation"%>"></a></font></p>
</td>
<td width="189" height="16"><b><font color="#808080" size="2" face="Tahoma">Image
ID:</font></b></td>
<td width="333" height="16"><font face="Tahoma" size="2"><font color="#808080"> </font><font color="#000080"><%=rs("id"%></font></font></td>
<td width="97" height="80" rowspan="4"></td>
<td width="151" height="35" rowspan="2"><font face="Tahoma" size="2"><b><font color="#808080">Details:</font></b></font></td>
<td width="1518" height="35" rowspan="2"><font face="Tahoma" size="2"><font color="#808080"><b> </b></font><font color="#000080"><%=rs("details"%></font></font></td>
</tr>
<tr>
<td width="189" height="19"><b><font face="Tahoma" size="2" color="#808080">User
ID:</font></b></td>
<td width="333" height="19"><font face="Tahoma" size="2" color="#808080"> <%=rs("author"%></font></td>
</tr>
<tr>
<td width="189" height="26"><b><font size="2" color="#808080" face="Tahoma">Date
Uploaded:</font></b></td>
<td width="333" height="26"><font face="Tahoma" size="2" color="#808080"> <%=rs("posted"%>
</font></td>
<td width="151" height="45" rowspan="2"><font face="Tahoma" size="2"><b><font color="#808080">Keywords:</font></b><font color="#808080"><b> </b></font></font></td>
<td width="1518" height="45" rowspan="2"><font color="#000080" face="Tahoma" size="2"> <%=rs("keywords"%></font></td>
</tr>
<tr>
<td width="189" height="19"><b><font color="#808080" size="2" face="Tahoma">Cadastre:</font></b></td>
<td width="333" height="19"><font face="Tahoma" size="2"><font color="#808080"> </font><font color="#000080"><%=rs("cadastre"%></font></font></td>
</tr>
</table>
</center>
</div>
<p align="right"><font size="2" color="#008080"><img border="0" src="../image%20database/bd10263_.gif">
<a href="IMAGE_EDIT.asp?view=<%=rs("id"%>">edit details</a> </font></p>
<p align="center"> </p>
<p align="center"> </p>
<p align="left"><a href="IMAGE.asp?view=read"><font face="Tahoma" size="2"><b>Return
to contents page</b></font></a></p>
<p><font face="Tahoma" size="2"><b><%
end if
%></b></font></p>
</body>
The filter bit is where I'm having trouble (receiving the foem data)... when you search I would like to only search iby the field selected in the drop down menu. Please go easy on me as I'm not very experienced!
Thanks in advance,
Marcus
<%
view = request.querystring("view"
' set up database conection
' this connection does not require an ODBC reference
path = Trim(Server.MapPath("/fpdb")
conn_string = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" + path + "\images.mdb"
Set con = Server.CreateObject("ADODB.Connection"
con.open conn_string
if view = "post" then
text = "reference goes here"
end if
%>
<html>
<head>
<%
if view="upload" then
response.write("<meta http-equiv='refresh' content='4; url=images.asp?view=read'>"
end if
%>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
</SCRIPT>
<title></title>
</head>
<body vlink="#0000FF" alink="#0000FF">
<p align="center"><b><a href="../image%20database/IMAGE%20Scan.asp?view=read"><img border="0" src="../image%20database/imagedb.jpg"></a></b></p>
<p align="center"> </p>
<%
if view= "read" then
search = request.querystring("filter"
' ------- if no filter show all records
if search="" then
mode="full"
mySQL = "SELECT top 100 * FROM pic_table ORDER BY id desc;"
' ----- if filter set to specific words then special SQL applies
elseif search="PRESETSEARCH_TOP200" then
mode="filtered"
mySQL = "SELECT top 200 * FROM pic_table ORDER BY id desc;"
elseif search="PRESETSEARCH_TOP350" then
mode="filtered"
mySQL = "SELECT top 350 * FROM pic_table ORDER BY id desc ;"
elseif search="PRESETSEARCH_TOP500" then
mode="filtered"
mySQL = "SELECT top 500 * FROM pic_table ORDER BY id desc;"
else
' ------- show filtered recordset only
search="%"+search+"%"
mode="filtered"
mySQL = "SELECT * FROM pic_table where cadastre like " & chr(39) &cstr(search) & chr(39)&" or id like " & chr(39) &cstr(search) & chr(39)&" or details like " & chr(39) &cstr(search) & chr(39) &" or keywords like " & chr(39) &cstr(search) & chr(39)&" or author like " & chr(39) &cstr(search) & chr(39)&" ORDER BY id desc;"
end if
sql1 = "SELECT DISTINCT id,cadastre,author,details,keywords FROM [pic_table] where"
if field="id" then
sql2=" [pic_table]." & cstr(field) & " = " & cstr(data)
elseif field="cadastre" then
sql2=" [pic_table].[cadastre] like '%"& cstr(data)& "%'"
elseif field="author" then
sql2=" [pic_table].[author] like '%"& cstr(data)& "%'"
elseif field="details" then
sql2=" [pic_table].[details] like '%"& cstr(data)& "%'"
elseif field="details" then
sql2=" [pic_table].[details] like '%"& cstr(data)& "%'"
else
sql2=" [pic_table]." & cstr(field) & " like '" & cstr(data) & "%'"
end if
sql3=" Order by [Cadastre];"
sql = sql1 & sql2 & sql3
Set rs = Server.CreateObject("ADODB.Recordset"
rs.Open mySQL, con, 0, 1
%>
<hr>
<p align="center"><font face="Tahoma" size="2" color="#800000">Options: </font><font face="Tahoma" size="2"><b><a href="../image%20database/IMAGE%20Scan.asp?view=read">Image
Quick Scan</a> <a href="for a Reference</a> <a href="the database</a></b></font>
<hr>
<p align="center"> <%if mode="filtered" then%>
<font face="Tahoma" size="2"><a href="../image%20database/IMAGE%20Scan.asp?view=read"><img border="0" src="../images/blinktriangle.gif" alt="You are currently viewing a filtered list from your previous search.... click on this to return to main IMAGE DATABASE page" align="left"></a></font>
<P align="center"> <font face="Verdana" size="1" color="#99A6FB">
...you are currently viewing a filtered list</font><font face="Verdana" size="1" color="#99A6FB">...<br>
<br>
[<a href="]
[<a href="../image%20database/IMAGE%20Scan.asp?view=read">QUICK SCAN</a>]<br>
</font><%end if%><br>
<%if mode<>"filtered" then%><font face="Verdana" size="1" color="#99A6FB">Showing latest
100
images uploaded...</font><%end if%>
<font color="#808080" face="Arial" size="3"><br>
</font>
<%
do until rs.EOF
new_date=rs("posted"
%>
</P>
<div align="center">
<center>
<table width="625" height="20" cellpadding="0">
<tr>
<td width="1" bgcolor="#FCFFF0" bordercolor="#99A6FB" rowspan="4" align="center" style="border: 1 solid #99A6FB"><font color="#800000" size="2" face="Tahoma"><a href="IMAGE_VIEW.asp?view=<%=rs("id"%>"><img src="../NetVisual/thumbnails/thmb_<%=rs("piclocation"%>" width="100" bgcolor="#C9D5F5" 24" height="100" alt="<%=cstr(rs("id")%>" align="center"></a></font></td>
<td width="295" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB"><font face="Verdana"><font size="2" color="#C0C0C0">Image
ID:</font><font face="Tahoma" size="2" color="#808080"> </font><a href="IMAGE_VIEW.asp?view=<%=rs("id"%>"><font face="Tahoma" size="2" color="#3F73ED"><b><%=rs("id"%></b></font></a></font><font face="Tahoma" size="2" color="#3F73ED"><b> </b></font></td>
<td width="504" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB" rowspan="2"><font size="2" color="#C0C0C0" face="Verdana">Details</font><font face="Verdana"><font size="2" color="#C0C0C0">:</font><font face="Tahoma" size="2" color="#808080"> </font></font><font face="Tahoma" size="1" color="#008000"><%=rs("details"%></font><font face="Tahoma" size="2" color="#3F73ED"><b> </b></font></td>
</tr>
<tr>
<td width="295" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB"><font face="Verdana"><font size="2" color="#C0C0C0">Cadastre:</font><font size="2" face="Tahoma" color="#808080">
</font><span style="text-transform: uppercase"><font size="2" face="Tahoma" color="#008080">
<%=rs("cadastre"%></font></span></font></td>
</tr>
<tr>
<td width="295" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB"><font face="Verdana"><font size="2" color="#C0C0C0">Date
Uploaded:</font><font size="2" face="Tahoma" color="#808080"> </font><font size="2" face="Tahoma" color="#008080"> <%=rs("posted"%></font></font></td>
<td width="504" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB" rowspan="2"><font size="2" color="#C0C0C0" face="Verdana">Keywords</font><font face="Verdana"><font size="2" color="#C0C0C0">:</font></font><font face="Tahoma" size="1" color="#008000"><%=rs("keywords"%></font><font face="Tahoma" size="2" color="#3F73ED"><b> </b></font></td>
</tr>
<tr>
<td width="295" bgcolor="#FCFFF0" bordercolor="#99A6FB" style="border: 1 solid #99A6FB"><font face="Verdana"><font size="2" color="#C0C0C0">User
ID:</font><font size="2" color="#808080"> </font><font size="2" face="Tahoma" color="#008080"><%=rs("author"%></font></font></td>
</tr>
<tr>
<td width="265" bgcolor="#FFFFFF" bordercolor="#99A6FB" align="center" colspan="2">
<p align="center"> </p>
</td>
</tr>
<%
rs.movenext
loop
rs.close
%>
</table>
</center>
</div>
<p> </p>
<%elseif view = "filter" then
%>
<div align="center">
<table border="0" width="511">
<tr>
<td width="503">
<p align="center"><b><font face="Tahoma" color="#3F73ED" size="2">Select
a category from the drop-down box and enter your search criteria...</font></b>
<center>
<form method="GET" action="IMAGE.asp" name="FrontPage_Form1" target="_self">
<p align="center"><select size="1" name="D1">
<option value="Cadastre" selected>Cadastre</option>
<option value="ID">ID</option>
<option value="Author">Author</option>
<option value="Details">Details</option>
<option value="Keywords">Keywords</option>
</select><input type="text" name="view" size="6" value="read" style="color: #FFFFFF; position: absolute; z-index: -3; font-family: Abadi MT Condensed; font-size: 8pt; background-color: #FFFFFF; left: 575; top: 20"><input type="text" name="filter" size="37"><input type="submit" value="Search" name="button1"></a></p>
<p align="center">
</p>
<p align="center"><br>
<font color="#000080">
<b><font size="2" face="Tahoma"><span style="letter-spacing: 3pt">-
Special
Searches-</span></font>
</b></font>
</p>
<p align="center"><font color="#99A6FB" size="2" face="Tahoma"><a href="../image%20database/image%20scan.asp?view=read&filter=PRESETSEARCH_TOP200"><span style="font-variant: small-caps">latest
200</span></a></font><font face="Tahoma" size="2"><font color="#99A6FB" size="2" face="Tahoma"><a href="../image%20database/image%20scan.asp?view=read&filter=PRESETSEARCH_TOP350"><span style="font-variant: small-caps"><br>
latest 350<br>
</span></a><a href="../image%20database/image%20scan.asp?view=read&filter=PRESETSEARCH_TOP500"><span style="font-variant: small-caps">latest</span></a><span style="font-variant: small-caps"><a href="../image%20database/image%20scan.asp?view=read&filter=PRESETSEARCH_TOP500">
500</a></span></font><br>
</font></p>
<p align="center"><font face="Tahoma" size="2"><a href="../image%20database/IMAGE_USER.asp?view=filter">Top
100 for specific User ID</a></font></p>
<p align="center"><font face="Tahoma" size="2"><a href="../image%20database/GroupSearch.htm">View
images from an Upload Group</a></font></p>
<p align="center"> </p>
<p align="center"> <a href="../image%20database/IMAGE%20Scan.asp?view=read"><font face="Tahoma" size="2"><b>Go to
Image Quick Scan</b></font></a></p>
</form>
</center>
</table>
</div>
<p>
<%
else
'error trap if nothing selected but got here by mistake - eg no view value after .asp in url
if view="" then
view="0"
end if
mySQL = "SELECT * FROM pic_table where id="
mySQL=mySQL + cstr(view)
mySQL=mySQL + " ORDER BY id desc"
Set rs = Server.CreateObject("ADODB.Recordset"
rs.Open mySQL, con, 0, 1
%>
</p>
<p>
</p>
<div align="center">
<center>
<table border="1" width="791" height="104">
<tr>
<td width="102" rowspan="4" height="98">
<p align="center"><font color="#800000" size="2" face="Tahoma"><a href="IMAGE_VIEW.asp?view=<%=rs("id"%>"><img src="../NetVisual/thumbnails/thmb_<%=rs("piclocation"%>" width="100" bgcolor="#C9D5F5" 24" height="100" alt="<%=rs("piclocation"%>"></a></font></p>
</td>
<td width="189" height="16"><b><font color="#808080" size="2" face="Tahoma">Image
ID:</font></b></td>
<td width="333" height="16"><font face="Tahoma" size="2"><font color="#808080"> </font><font color="#000080"><%=rs("id"%></font></font></td>
<td width="97" height="80" rowspan="4"></td>
<td width="151" height="35" rowspan="2"><font face="Tahoma" size="2"><b><font color="#808080">Details:</font></b></font></td>
<td width="1518" height="35" rowspan="2"><font face="Tahoma" size="2"><font color="#808080"><b> </b></font><font color="#000080"><%=rs("details"%></font></font></td>
</tr>
<tr>
<td width="189" height="19"><b><font face="Tahoma" size="2" color="#808080">User
ID:</font></b></td>
<td width="333" height="19"><font face="Tahoma" size="2" color="#808080"> <%=rs("author"%></font></td>
</tr>
<tr>
<td width="189" height="26"><b><font size="2" color="#808080" face="Tahoma">Date
Uploaded:</font></b></td>
<td width="333" height="26"><font face="Tahoma" size="2" color="#808080"> <%=rs("posted"%>
</font></td>
<td width="151" height="45" rowspan="2"><font face="Tahoma" size="2"><b><font color="#808080">Keywords:</font></b><font color="#808080"><b> </b></font></font></td>
<td width="1518" height="45" rowspan="2"><font color="#000080" face="Tahoma" size="2"> <%=rs("keywords"%></font></td>
</tr>
<tr>
<td width="189" height="19"><b><font color="#808080" size="2" face="Tahoma">Cadastre:</font></b></td>
<td width="333" height="19"><font face="Tahoma" size="2"><font color="#808080"> </font><font color="#000080"><%=rs("cadastre"%></font></font></td>
</tr>
</table>
</center>
</div>
<p align="right"><font size="2" color="#008080"><img border="0" src="../image%20database/bd10263_.gif">
<a href="IMAGE_EDIT.asp?view=<%=rs("id"%>">edit details</a> </font></p>
<p align="center"> </p>
<p align="center"> </p>
<p align="left"><a href="IMAGE.asp?view=read"><font face="Tahoma" size="2"><b>Return
to contents page</b></font></a></p>
<p><font face="Tahoma" size="2"><b><%
end if
%></b></font></p>
</body>
The filter bit is where I'm having trouble (receiving the foem data)... when you search I would like to only search iby the field selected in the drop down menu. Please go easy on me as I'm not very experienced!
Thanks in advance,
Marcus