Alright,
I think I have it narrowed down now. Firefox set a variable [Complete] as well as [Complete_x] and [Complete_y] .
My code checked to see if [Complete] was set and the extracted the id that accompanied it to identify which item it was associated to. For instance:
wash the dog {Complete} {Edit}
Mow the Lawn {Complete} {Edit}
Now the Complete button for Wash the dog had a value of say 1 and Mow the dog had a value of 2. So If you clicked Complete for wash the dog the code checked to see what you clicked and then what the value was and updated the sql database accordingly.
As I have said this all worked perfectly in Firefox. The problem is that IE does not set the variable [Complete] and the mouse values of [Complete_x] and [Complete_y] are worthless to me other than to find out if the button was clicked.
When I add a hidden field I am not getting the proper value. The problem is my value is always equal to the last item in the list. This has something to do with not properly extracting the value from an array.
So my new question is this.
What is the proper way to do this.
Once the button is clicked I need to have the code figure out what the value is on the line that was clicked. Below please see a snippet of the source from the page:
<table width=100% border=0 cellspacing=0>
<tr BGcolor=#e8e8e8 Valign=Top><input type=hidden name="aid" value="246">
<input type=hidden name="aCondid" value="1254">
<td width=7% CLASS=Pending><input type=image src='images/Ordered.png' onClick='javascript:document.conditions.submit()' name="Complete" title='Completed' value="1254">
<a href='REI.php?aCondid=1254' onClick='window.open('Order Insurance','popup', scrollbars=no, resizable=no, toolbar=no, menubar=no')' target='popup'><IMG src='images/Ordered.png'></a>
<td width=15% CLASS=Pending><b>Insurance</b>
<td width=20% CLASS=Pending>1254<td width=25% CLASS=Pending>
<td width=10% CLASS=Pending>00/00/0000<td width=10% CLASS=Pending>00/00/0000<td width=10% align="right"></td>
</tr>
<tr>
<tr BGcolor=#b0c4de Valign=Top><input type=hidden name="aid" value="246">
<input type=hidden name="aCondid" value="1256">
<td width=7% CLASS=Pending><input type=image src='images/Ordered.png' onClick='javascript:document.conditions.submit()' name="Complete" title='Completed' value="1256">
<input type=image src='images/Ordered.png'onClick='javascript:document.conditions.submit()' name='OrderService' title='Order' value='1256'>
<td width=15% CLASS=Pending><b>Lender Approval</b>
<td width=20% CLASS=Pending>1256<td width=25% CLASS=Pending>
<td width=10% CLASS=Pending>00/00/0000<td width=10% CLASS=Pending>00/00/0000<td width=10% align="right"></td>
</tr>
<tr>
<tr BGcolor=#e8e8e8 Valign=Top><input type=hidden name="aid" value="246">
<input type=hidden name="aCondid" value="1251">
<td width=7% CLASS=Ordered><input type=image src='images/Ordered.png' onClick='javascript:document.conditions.submit()' name="Complete" title='Completed' value="1251">
<input type=image src='images/Completed.png'onClick='javascript:document.conditions.submit()' name='OrderService' title='Order' value='1251'>
<td width=15% CLASS=Ordered><b>Title/Escrow</b>
<td width=20% CLASS=Ordered>1251<td width=25% CLASS=Ordered>
<td width=10% CLASS=Ordered>09/08/2005<td width=10% CLASS=Ordered>00/00/0000<td width=10% align="right"><input type=image src='images/Completed.png' onClick='javascript:document.conditions.submit()' name="Request" title='Request Processing Order' value="1251"></td>
</tr>
<tr>
As you can see the values are different on each line but no matter which one is clicked the value is always the same. What is the proper way to get the number.