Para dar mas detalles de mi problema inserto código.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Titulo</title>
<meta name="keywords" content="escuela, capacitacin, judicial, catamarca, argentina, derecho, cursos, talleres, charlas, biblioteca, virtual, libros" />
<meta name="description" content="Contenidos de Escuela de Capacitacin Judicial de Catamarca" />
<link href="plantilla_estilo.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="">
<!--<script language="JavaScript" type="text/javascript" src="js/codigo.js"></script> -->
<style type="text/css">
<!--
.Estilo1 {
color: #CC6600;
font-weight: bold;
}
-->
</style>
<script type="text/javascript">
function actualizarpagina (checkbox) {
// el siguiente bloque no funciona
if (checkbox.checked) {
alert ("The check box is checked.");
}
else {
alert ("The check box is not checked.");
}
}
</script>
</head>
<body>
<div id="plantilla_wrapper">
<div id="plantilla_header">
<div id="site_title">
<h1><a href="index.php"><img src="images/logo2.png" alt="logo" width="387" height="44" border="0" /><span>Módulo de consultas</span></a></h1>
</div> <!-- end of site_title -->
</div> <!-- end of header -->
<div id="plantilla_main"><span class="main_top"></span>
<p class="welcome_text"><span class="fl_img"><img src="images/logo_escuela.png" alt="Our services" width="186" height="181" /></span><span class="Estilo1">"Creciendo, Trabajando, Capacitando... "</span></p>
<div class="col_w620 float_r">
<h2>Resultados de la búsqueda</h2>
<div class="image_wrapper fl_img"><img src="images/lupa.png" alt="lupa" width="90" height="90" /></div>
<p>
<?php
$apellido = $_POST['apellido'];
$link = mysql_connect("localhost","root","") or die ("no se ha podido conectar");
mysql_select_db("certificados") or die("Error al tratar de selecccionar esta base");
$sql = "SELECT * FROM certificado WHERE apellido = '$apellido'";
$result = mysql_query($sql,$link);
if (mysql_num_rows($result)){
echo "<table border = '1'>";
echo "<tr>";
echo "<td><b> Código del certificado </b></td>";
echo "<td><b> Nombre </b></td>";
echo "<td><b> Apellido </b></td>";
echo "<td><b> Nombre del Curso/Taller </b></td>";
echo "<td><b> Fecha de realización </b></td>";
echo "<td><b> Retiró certificado </b></td>";
echo "</tr>";
while($row = mysql_fetch_object($result)) {
echo "<tr>";
echo "<td>$row->id_certificado</td>";
echo "<td>$row->nombre</td>";
echo "<td>$row->apellido</td>";
echo "<td>$row->curso</td>";
echo "<td>$row->fecha</td>";
//echo "<td>$row->dia</td>";
//echo "<td>$row->mes</td>";
//echo "<td>$row->año</td>";
if($row->retirado=="NO") {
//<form name="Modificar Registro" action="modificar-registro.php" method="post" >
//echo "<input type="submit" value="Retirado" name="boton_modificar"/>";
//echo "<td>$row->retirado</td>" +'<button onclic=""><font color="#cc0000"><strong>AQUI EL TEXTO</strong></font> </button>';
echo "<td>$row->retirado <input name=\"casilla\" type=\"checkbox\" id=\"campoOculto\" value=\"si\" onclic=\"javascript:actualizarpagina(this);\";/></td>";
//</form>
} else {
echo "<td>$row->retirado</td>";
}
echo "</tr>";
}
echo "</table>";
}else
echo "No se ha encontrado ningún registro.";
mysql_free_result($result);
mysql_close($link);
?>
</p>
<div class="button float_r"><a href="index.php">Volver...</a></div>
</div>
<div class="cleaner"></div>
</div> <!-- end of main -->
<div id="plantilla_main_bottom"></div> <!-- end of main -->
<div id="plantilla_footer"><a href="http://www.wix.com/escuelavirtualcat/escuela" target="_parent">Escuela de Capacitación Judicial</a> | por Yorch-Tecno </div>
<!-- end of plantilla_footer -->
</div> <!-- end of wrapper -->
</body>
</html>
El código anterior es el de la página que me muestra los resultados, la tabla, y la casilla de verificación
Lo que quiero es que al hacer clic en la casilla se cambie el estado de la variable y que la pagina se actualice, y muestre los mismos resultados encontrados (con el cambio reflejado)
Muchas gracias por tu ayuda y respuestas