Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   picking up image buttons (http://www.velocityreviews.com/forums/t797258-picking-up-image-buttons.html)

Patrick 12-06-2004 06:00 PM

picking up image buttons
 
I have an "image button" that appear like so (from View source from IE)
<input alt="Delete Items" src="../UserMods/butt_deleteItems.gif"
type="image" name="delete" value="Delete Incomplete Order" border="0">
the form is posted using HTTP POST.

<form METHOD="POST" name="restoreCart" action="custListCarts.asp">

How could I pick up whether this button is clicked?

I added the following debug code
%>DELETE=[<%=Request.Form("delete")%>]<br>
Restore=[<%=Request.Form("restore")%>]<br>
Request.Form=[<%=Request.Form%>]<%

Strangely, they produce this output:
DELETE=[]
Restore=[]
Request.Form=[orderNumbers=4428&idCust=996&delete.x=39&delete.y= 3]

The delete.x and delete.y return different number each time it is clicked!




Evertjan. 12-06-2004 06:08 PM

Re: picking up image buttons
 
Patrick wrote on 06 dec 2004 in microsoft.public.inetserver.asp.general:

> I have an "image button" that appear like so (from View source from IE)
> <input alt="Delete Items" src="../UserMods/butt_deleteItems.gif"
> type="image" name="delete" value="Delete Incomplete Order" border="0">
> the form is posted using HTTP POST.
>
> <form METHOD="POST" name="restoreCart" action="custListCarts.asp">
>
> How could I pick up whether this button is clicked?
>
> I added the following debug code
> %>DELETE=[<%=Request.Form("delete")%>]<br>
> Restore=[<%=Request.Form("restore")%>]<br>
> Request.Form=[<%=Request.Form%>]<%
>
> Strangely, they produce this output:
> DELETE=[]
>


<http://www.chami.com/tips/internet/042399I.html>

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)



All times are GMT. The time now is 05:05 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.