Forum Moderators: open

Message Too Old, No Replies

Change button with ASP code value on submit button

         

midet

10:47 am on Jul 27, 2005 (gmt 0)

10+ Year Member



Hi all.

I have a button with the following code :

<input type="submit" name="id_agent" value="<%=x.value%>">

This value is then used on the next page like this :

<% cid=Request.Form("id_agent") %>

Problem is that the submit button is as ugly as everybody knows and would like to change it to an image. Used :

<a href="javascript:document.insert.submit();"><img src="insert.gif"></a>

But then this does not send the value...any way of sending a value with ASP code and still change the image?

Thanks in advance

Regards

dcrombie

11:43 am on Jul 27, 2005 (gmt 0)



<input type="image" name="submit" value="...">

midet

12:06 pm on Jul 27, 2005 (gmt 0)

10+ Year Member



That would work? don't I have to state the type as a submit?

Where would I state the image name? image.gif?

Cheers

Stooshie

1:32 pm on Jul 27, 2005 (gmt 0)

10+ Year Member



Try:

<input type="hidden" name="id_agent" value="<%=x.value%>">
<input type="image" src="...">

Hope it helps.

Best regards,

Andrew.

midet

1:59 pm on Jul 27, 2005 (gmt 0)

10+ Year Member



Thanks, that worked fine, strange how the most obvious solution are the last ones I think about :)

Thanks.

Cheers