Can someone explain how to back trace a dead button?

Hello,

I have a Button on a page that is dead/not working.

using FireBug I can see this below.

<tr>
<tr>
<form name=“select_auctions” method=“get” action=“list_auctions.php”></form>
<tr>
<tr>
<tr>
<td align=“center”>
<input id=“form_save_settings” type=“button” value=“Proceed” name=“form_save_settings” onclick=“send_form(select_auctions, ‘approval’);”>
</td>
</tr>
</tbody>

all help appreciated :slight_smile:

The CSS applying to that code is probably the culprit. Can we see a live example of this? Is the code you’ve posted just a snippet of the HTML? If not, you have too many <tr>s.

Hello ralph.m

thank you for your reply, ok here is what I can see using FireBug table to table.

<table width=“100%” cellspacing=“0” cellpadding=“0” border=“0”>
<tbody>
</table>
<table class=“fside” width=“100%” cellspacing=“3” cellpadding=“3” border=“0”>
<tbody>
<tr>
<tr>
<tr>
<tr>
<form name=“select_auctions” method=“get” action=“list_auctions.php”></form>
<tr>
<tr>
<tr>
<td align=“center”>
<input id=“form_save_settings” type=“button” value=“Proceed” name=“form_save_settings” onclick=“send_form(select_auctions, ‘approval’);”>
</td>
</tr>
</tbody>
</table>

Complete:

<html>
<head>
<body bgcolor="#ffffff" topmargin="20" leftmargin="8">
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-bottom: 1px solid #777777; background-image: url(images/bg_head.gif); background-repeat: repeat-x; background-position: bottom;">
<div>
<table width="100%" cellspacing="4" cellpadding="0" border="0">
<tbody>
<tr>
<td width="220" valign="top">
<td width="10">
<td width="100%" valign="top">
<script language="Javascript">
<style type="text/css">
<div id="centered_div">
<div class="mainhead">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
</table>
<table class="fside" width="100%" cellspacing="3" cellpadding="3" border="0">
<tbody>
<tr>
<tr>
<tr>
<tr>
<form name="select_auctions" method="get" action="list_auctions.php"></form>
<tr>
<tr>
<tr>
<td align="center">
<input id="form_save_settings" type="button" value="Proceed" name="form_save_settings" onclick="send_form(select_auctions, 'approval');">
</td>
</tr>
</tbody>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
</td>
</tr>
</tbody>
</table>
<br>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-top: 1px solid #777777; background-image: url(images/bg_foo.gif); background-repeat: repeat-x; background-position: top;">
<script src="http://analytics.hosting24.com/count.php" type="text/javascript">
<style>
<script src="http://analytics.hosting24.com/j.js" type="text/javascript">
<script type="text/javascript">
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<div id="facebox" style="top: 110.5px; left: 306px; display: none;">
</body>
</html>

Again, CSS is important here. But to be honest, that HTML needs a massive cleanup. You’ve got all kinds of things like multiple empty, unclosed <tr>s

<tr>
<tr>
<tr>
<tr>

a closing </form> tag before the remaining <form> elements, a couple of empty or incomplete tables … The first thing to do is to work out what the page actually needs to do / present, and then start from there. With code this jumbled, any number of things could be causing your problem.

I don’t mean to be cruel, but honestly, it’s critical to tidy up this code first. Otherwise, any superficial help is like offering a bandaid to a patient with severe coronary disease.

Thank you Ralph.m

I will start to tidy up the code, and see how things develop,

your reply/help/ideas appreciated

:slight_smile:

Ignoring the HTML…well, ignoring how very invalid it is, you close the <form> before you have anything in it!

Also your submit button relys on the use of a javascript function onclick…post that code here. If you remove it, does it work?

Your code is far too invalid to even attempt fixing it at this stage. You shouldn’t even really be using tables from the looks of it :).