Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6338009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:21:38+00:00 2026-05-24T19:21:38+00:00

I have quite a big form with multiple (over 100) submit buttons in it.

  • 0

I have quite a big form with multiple (over 100) submit buttons in it. Im using the following code now:

<input type='image' src='../images/add.png' name='FormDuplicate' value='" . $resInvoices['iProjectID']. "'>

If I click this image, it perfectly works.. in Chrome but not IE (7 and 8). When clicked upon in IE, the name isn’t even passed (FormDuplicate).

As I did a quick Google, I’ve found that IE won’t pass the value of a submit image. This leaves me to using multiple forms, but for a technical reason, I am not able to. So, what are my options?

Thanks.

Update regarding the comment

Here is the full <tr>:

<tr class='invoice-tr-standard' id='row2' onClick="FormTRClick(event, '2')"><td><input type='checkbox' name='strFormFactuur[]' value='19512' id='chk2'>&nbsp;<img src='../images/link.png' border='0'></td>

  <td><a href='project_details.php?projectID=19512' target='_blank'>Project</a></td>

  <td>Jobinfo</td>

  <td>Customer</td>

  <td><input type='text' name='FormTextStrPOnummer' value='324'> <img src='../images/b_save.png' border='0' height='13px' style='cursor: pointer;'></td>

  <td>€ <input type='text' name='FormTextFltBedrag'  value='999.000'> <img src='../images/b_save.png' border='0' height='13px' style='cursor: pointer;'></td>

  <td><img src='../images/b_save.png' border='0' height='13px' style='cursor: pointer;'> <input type='image' src='../images/toevoegen.png' border='0' style='float: right; cursor: pointer;' name='FormDupliceer' value='19512'></td>

</tr>

And here is the final <td> element of the current tr row:

<td><img src='../images/b_save.png' border='0' height='13px' style='cursor: pointer;'> <input type='image' src='../images/toevoegen.png' border='0' style='float: right; cursor: pointer;' name='FormDupliceer' value='19512'></td>

The code is unmodified and this appears as the HTML code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:21:40+00:00Added an answer on May 24, 2026 at 7:21 pm

    IE will pass the coordinates only, so look for FormDuplicate.x and FormDuplicate.y in the Request collection and if exist, it means the FormDuplicate image was clicked.

    Something like:

    if(isset($_POST['FormDuplicate.x'])) {
        //submitted by FormDuplicate
    }
    

    From what I’ve seen, other browsers also send this (in addition to sending the value) so it should work cross browser.

    Edit: to preserve and pass the value of the clicked image, add this JavaScript code to the page:

    window.onload = function() {
        var arrInputs = document.getElementsByTagName("input");
        for (var i = 0; i < arrInputs.length; i++) {
            var oInput = arrInputs[i];
            if (oInput.type == "image") {
                oInput.onclick = function() {
                    var oHidden = document.createElement("input");
                    oHidden.type = "hidden";
                    oHidden.name =this.name;
                    oHidden.value = this.value;
                    this.form.appendChild(oHidden);
                    this.value = "";
                };
            }
        }
    };
    

    This code dynamically attach click event handler for all inputs of type image, in which it will create hidden input on the fly, assign its name to the name of the image input and its value to the image input value, then append the hidden input to the parent form of the image, resulting in the value passed properly.
    To avoid duplicate values in browsers like FF or Chrome, the code clears the image input value after appending the hidden element.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have quite big ASP.NET MVC 2 application (multiple areas, each with own routing
We have quite a big tree of source code, parts of it are deployed
I have quite a big code here... But fortunately it is not needed to
We are using maven with eclipse. We have a multi module project, quite big.
I have quite big document in html format that generated from Microsoft Word. It
I have a quite big XML output from an application. I need to process
We have a git project which has quite a big history. Specifically, early in
I am refurbishing a big CMS that I have been working on for quite
Please help me to refactore this Javascript code. There is big form for scheduled
I have quite a big table (about 4M of entries) for emails that are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.