Tengo un inconveniente debo insertar en una tabla llamada ENFER, varios valores con un checkbox no se como hacerlo, ESTO ES LO QUE TENGO MONTADO Y SOLO ME ALMACENA EN MI BASE DE DATOS EN ESTE CASO EL ULTIMO REGISTRO SELECCIONADO, "por favor tengame paciencia que tengo tiempo investigando esto y cuando me explican en terminos php me cuesta"
<html>
<head>
<title>Problema</title>
</head>
<body>
<?php
$conexion=pg_connect("host=localhost port=5432 password=1234 user=postgres dbname=postgres")
or die("Problemas en la conexion");
pg_query("insert into alumnos(nombre,mail,ci,codigosexo,codigocurso) values
('$_REQUEST[nombre]','$_REQUEST[mail]',$_REQUEST[ci],$_REQUEST[codigosexo],$_REQUEST[codigocurso])");
pg_query("insert into enfer(ci,codigoenfermedades) values
($_REQUEST[ci],$_REQUEST[codigoenfermedades)");}
pg_close($conexion);
echo "El alumno fue dado de alta";
?>
<p><a href="formulario.htm">volver a llenar el formulario </a></p>
</body>
</html>
<html>
<head>
<title>Problema</title>
</head>
<body>
<h1>Alta de Alumnos</h1>
<form action="pagina2finisimo.php" method="post">
<p>Ingrese nombre:
<input type="text" name="nombre" >
<br>
Ingrese mail:
<input type="text" name="mail">
<br>
C.I.:
<input type="text" name="ci">
<br>
Seleccione el curso:
<select name="codigocurso" size="1">
<option value="1" selected>PHP</option>
<option value="2">ASP</option>
<option value="3">JSP</option>
</select>
</p>
<p>
<input type="radio" name="codigosexo" value="1">
MASCUILINO
<input type="radio" name="codigosexo" value="2">
FEMENINO </p>
<p>
<input type="checkbox" id="codigoenenfermedades" value="1"> ripe </p><p>
<input type="checkbox" id="codigoenenfermedades" value="2"> asma</p><p>
<input type="checkbox" id="codigoenenfermedades" value="3"> fiebre </p>
<p>
<input type="submit" value="Registrar">
<INPUT TYPE="button"
VALUE="Cerrar ventana"
onClick="window.close();">
</p>
</form>
</body>
</html>
Leonardo
El muy NOVATO