Robert:

INPUT fields of type "Image" do not pass a value as defined by the VALUE
attribute.  Instead, they pass 2 values, defined by the NAME attribute.  The
values passed are "name.x" and "name.y" each value corresponding to the X or
Y coordinate of the point on the image where the user click the mouse.  So,
for example, if a user clicked dead center on the image produced by:

        <INPUT TYPE="image"
                SRC="images/delete_record.gif"
                NAME="delete"
                WIDTH="100" HEIGHT="100">

Your action page would see delete.x and delete.y, both of which would
contain the value "50".

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -----Original Message-----
> From: Robert Orlini [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 02, 2003 10:35 AM
> To: CF-Talk
> Subject: SUBMIT button
>
>
> Any reason that this submit button code does not work?
>
> <input type="image" border="0" src="images/delete_record.gif"
> alt="delete" value="delete" name="delete">
>
> I like the look of this button because it is an image, but does
> not pass the "delete" value to the form.
>
> This one works fine:
>
> <input type="submit" value="delete" name="delete"
> src="images/delete_record.gif">
>
> But is displays the old looking default SUBMIT button.
>
> Robert O.
> HWW
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Reply via email to