input type image

M

Mark

Hi,
I create a button in the form in the asp page like is:
<input type="image" src="button.gif" name="detail" border=0 value="100234">

How can I get this value from another page?
I try
sdetail = Trim(Request.Form("detail"))
response.write(sdetail)
But doesn't work
Thanks.
 
R

Ray at

You can't. The values passed for an input type=image are the x,y
coordinates on where the user clicks the image, if he clicks it. Use a
hidden input.

<input type="hidden" name="hiddenInput" value="100234">

<%
sdetail = Request.Form("hiddenInput")
response.write sdetail
%>

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,773
Latest member
Kaybee

Latest Threads

Top