[eluser]Otemu[/eluser]
Code:
Hi,
I have a simple form with several button elements
[code]
<button name="selectedTab" type="submit" value="topten">TOP TEN</button>
<button name="selectedTab" type="submit" value="wins">WINS</button>
<button name="selectedTab" type="submit" value="losses">LOSSES</button>
However the value actually submitted is different for IE6/IE7, for instance if a user clicks the top ten button, other browsers submit the actual value of 'topten' but IE6/IE7 submits the actual text of'TOP TEN'
I have seen the solution to use hidden input, this method is fine, however since my form contains mutiple buttons, I basically have to have different forms for each hidden input which is not idea.
The current method I am using is to check for both values, which doesnt seem great, wondering if anyone has any other solutions?
Code:
if(($selectedTab=="topten")||($selectedTab=="TOP TEN"))