I have a form with 2 different submit buttons which are images. I can't seem to collect the value on the next page. However, if I change the type from "image" to "submit" it works fine.

Anyone know how to get an image field to send a value?

Thanks in advance!
- Jon

    try somthing like:

    <script language="javascript">
    function submit_me() {
    document.form_name.submit();
    }
    </script>
    <input type="image" onclick="return submit_me">

    well accually i'm not sure this will work..

      It seems that image fields only send the x & y coordinates that you clicked on in the image. I have 2 buttons. One named "cart". The other named "wishlist". If I click on cart, it sends cart.x & cart.y. If I click on wishlist, it sends wishlist.x & wishlist.y. So I just checked to see which button's coordinates were sent.

        Write a Reply...