I’ve decided to start posting examples of bad code. We’ll start with this one, because it’s the most recent.

<strong><span style="font-weight: normal;">

This is a really good example of javascript done wrong.

function load(){
  document.location.href="apsExamsReport.php?form=" + document.form1.form.options[document.form1.form.selectedIndex].value + "&status3=" + document.form1.status3.options[document.form1.status3.selectedIndex].value + "&status=" + document.form1.status.options[document.form1.status.selectedIndex].value + "&by=" + document.form1.by.options[document.form1.by.selectedIndex].value + "&uid=" + document.form1.uid.value + "&date_until=" + document.form1.date_until.value + "&date_from=" + document.form1.date_from.value + "&type=" + document.form1.type.options[document.form1.type.selectedIndex].value + "&order=<?php echo $order;?>&start=0&total=<?php echo $total;?>";
  return false;
}

Stating the obvious:

<td colspan="1">