Forum Moderators: coopster
Right.. the following code works in firefox, you click the button and it takes you to the holiday-payment-insert.php page.
Now if you click it in IE, it just stays there, nothing happens..
Any ideas why?
Here is the code ----
<tr>
<td width="120">
<? echo "<a href='holiday-payment-insert.php?holidaysID=".$holidaysID."'">";?>
<input name="Insert" type="button" class="frmButton" id="Payment" value="Insert " />
<? echo "</a>";?></td>
</tr>
Again any help would really be appreciated!
While hughie's solution will work in many cases you should bear in mind that it uses javascript and therefore the button will simply not work in browsers with javascript turned off.
If you really need a form style button, I would urge you to use PHP_Chimp's solution which does not require javascript and will work in all browsers. If you don't, why not just use a straight <a> tag and style it up to look pretty with CSS?