Hello,
I am using icons in place of submit buttons; the user will click on the icon to find more information on a company. I am using a SQL Database and the If not command to list the companies from the database and their corresponding company id. The following script works, but I want to use an image instead of the submit button.
If Not rs.EOF Then
'some code here before the problem script
Response.Write "<td><form name='More Info"& strCompanyNumber & "' action='moreinfo.asp' method='get'>"
Response.Write "<input name='CompanyInfo"& strCompanyNumber & "' value='" & strCompany & "' type='submit' src='/images/more_info.jpg' alt='Company Information'>"
'some code here after the problem script
rs.MoveNext
End If
Next
Produces the desired result:
http://www.mycompany.com/Directory/C...anyInfo1=50888
However, I want to use an image here instead using a button with the company ID written on it (Something like the following, except it doesnât work.):
If Not rs.EOF Then
'some code here before the problem script
Response.Write "<td><form name='More Info"& strCompanyNumber & "' action='moreinfo.asp' method='get'>"
Response.Write "<input name='CompanyInfo"& strCompanyNumber & "' value='" & strCompany & "' type='image' src='/images/more_info.jpg' alt='Company Information'>"
'some code here after the problem script
rs.MoveNext
End If
Next
When I use the type='image' and the get command, I receive the following URL:
http://www.mycompany.com/Directory/C...panyInfo1.y=20
How can I get the results from the first script, using an image instead of a submit button?
Thank you for your help.