Hi,
I have a problem that seems to be small to me,
because it has been solved before, namely by those
who made phpmyadmin. Unfortunately I don't know what I
did differently, actually I took a part of their html-code
and modified it.
There are three submit-buttons that have been placed
with button-tags with img-tags inside.
Clicking on one of these buttons has different effects
(Delete, Edit, Export) to some database entries,
which can be marked with checkboxes.
I'm trying to do exactly the same ("html-form"-wise,
of course my DB-queries are different,
otherwise I could use phpmyadmin instead).
I took the buttons-tags of phpmyadmin and modified
them the way I needed:
Appart from the texts and the img-src it's 1:1 from phpmyadmin
(and that works also in IE!)
In Firefox my code works perfectly, too,
when I submit with one of the buttons,
the value-Attribute of the button-tag
is being sent:
In PHP:
when I click the approve-button that I exemplified here.
The same goes for the other buttons and their values.
In IE6 instead the http-request contains
all(!) img-tags
from inside the buttons as values of three different
submit_mult - variables,
instead of the value specified in the button-tag.
A "cleaned" version of what I find
in the address bar of IE:
(I replaced the ASCII-Hex-Codes by their characters
and put spaces in between for readability)
How can I get IE to send the value of those buttons
that I specified in the value-attribute?
Cheers,
Steven
P.S. I read FAQ, I made a keyword search, I googled around
and I validated the html code, didn't find a solution.
Especially, it is NOT
because I left some quote open, or so. ;-)
I have a problem that seems to be small to me,
because it has been solved before, namely by those
who made phpmyadmin. Unfortunately I don't know what I
did differently, actually I took a part of their html-code
and modified it.
There are three submit-buttons that have been placed
with button-tags with img-tags inside.
Clicking on one of these buttons has different effects
(Delete, Edit, Export) to some database entries,
which can be marked with checkboxes.
I'm trying to do exactly the same ("html-form"-wise,
of course my DB-queries are different,
otherwise I could use phpmyadmin instead).
I took the buttons-tags of phpmyadmin and modified
them the way I needed:
Code:
<button class="mult_submit" type="submit" name="submit_mult" value="approve" title="Approve">
<img src="/images/approve.png" title="Approve" alt="Approve" width="16" height="16" align="middle" />
</button>
Appart from the texts and the img-src it's 1:1 from phpmyadmin
(and that works also in IE!)
In Firefox my code works perfectly, too,
when I submit with one of the buttons,
the value-Attribute of the button-tag
is being sent:
Code:
.../index.php?chkbx0=1122482183&[aqua]submit_mult[/aqua]=[navy]approve[/navy]
Code:
($_REQEST['submit_mult'] == "approve") is TRUE
The same goes for the other buttons and their values.
In IE6 instead the http-request contains
all(!) img-tags
from inside the buttons as values of three different
submit_mult - variables,
instead of the value specified in the button-tag.
A "cleaned" version of what I find
in the address bar of IE:
(I replaced the ASCII-Hex-Codes by their characters
and put spaces in between for readability)
Code:
.../index.php? chkbx0=1122482183 & [aqua]submit_mult[/aqua]=[navy]<IMG + title=Approve + height=16 + alt=Approve + src="/images/approve.png" + width=16 + align=middle>[/navy]
[aqua]submit_mult[/aqua]=[navy]<IMG + title=Delete + height=16 + alt=Delete + src="/images/delete.png" + width=16 + align=middle>[/navy]
...
How can I get IE to send the value of those buttons
that I specified in the value-attribute?
Cheers,
Steven
P.S. I read FAQ, I made a keyword search, I googled around
and I validated the html code, didn't find a solution.
Especially, it is NOT
Code:
<button value="blabla> img-tag here </button>