picking up image buttons

P

Patrick

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!
 
E

Evertjan.

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>
 

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

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top