469,953 Members | 2,339 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,953 developers. It's quick & easy.

input type image

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.

--
Mark
Jul 19 '05 #1
1 4340
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

"Mark" <mm***@hotmaill.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
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.

--
Mark

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jawahar Rajan | last post: by
1 post views Thread by Brian Genisio | last post: by
5 posts views Thread by SPEAKIT | last post: by
2 posts views Thread by Mr.Clean | last post: by
3 posts views Thread by jackiepatti | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.