Using an image as submit button
Posted on 2001-07-11
I am displaying several (this will vary) thumbnails to user as a result of a query. I am using the images as submit buttons. I want user to be able to click on thumbnail image and be taken to the appropriate page.
My problem is that I can't seem to pass the image value to the next page. Can this be done? This is what my code looks like so far.
<%@ Language=VBScript %>
strTemp = "yes"
set openConnection = Server.CreateObject("ADODB.CONNECTION")
set rsSWbaskets = server.CreateObject("ADODB.Recordset")
openConnection.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Inetpub\wwwroot\newsite\dataOne.mdb"
set rsSWbaskets = openConnection.Execute("Select * FROM basket WHERE birthday LIKE '" & strTemp & "' ")
<FORM NAME ="BetaMax" Method=Post Action="testo.asp">
<% While not rsSWbaskets.EOF %>
strThumbnail = rsSWbaskets("thumbnail")
strName = rsSWbaskets("name")
<INPUT TYPE ="IMAGE" NAME="imgSearch" VALUE="<%=strThumbnail%>" src=<%=strThumbnail%> width="100" height="100">
<h3><%Response.Write strName %>
set rsSWBaskets = nothing
set openConnection = nothing