That's invalid HTML. The button element may only contain inline content and text, perhaps only text. It's a sort of rogue element anyway. Better to use the more predictable input tag. And the form opens inside a td, and closes in an area where no form is allowed to close. You don't want your user's ability to pay to depend upon javascript either (the onclick event is javascript only). I'm not sure what you mean about the button looking different without the id, unless you have something in a stylesheet for that id, in which case we need to see that. On its own, it looks different in different browsers though. If you do it like so:
Code:
<tr class="alt2">
<td>GARETH TINDALL</td>
<td>BOLAND</td>
<td>STRAND</td>
<td>?</td>
<td><form action="https://www.payfast.co.za/eng/process" method="post">
<input type="hidden" name="cmd" value="_paynow">
<input type="hidden" name="receiver" value="robhar@mweb.co.za">
<input type="hidden" name="item_name" value="GNJGF Tournament Payment">
<input type="hidden" name="item_description" value="payment">
<input type="hidden" name="amount" value="151.00">
<input type="hidden" name="return_url" value="http://www.gnjgf.co.za/entryform.php">
<input type="hidden" name="cancel_url" value="http://www.gnjgf.co.za/d.php">
<input id="AdvancedButton2" type="submit" name="AdvancedButton1" style="width:66px;height:20px;background-color:#98ABCE;font-size:11px; font-family: arial, sans-serif;" value="PAY NOW">
</form>
</td>
</tr>
At least it will be valid HTML (valid for some DTD's). More importantly it will (barring something contradictory in the stylesheet) look the same in most browsers, and it will work.
You don't need:
id="AdvancedButton2"
or:
name="AdvancedButton1"
for functionality. But having them there doesn't prevent the input from working.
Bookmarks