Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/03/2012, 19:52
elsaiya
 
Fecha de Ingreso: marzo-2012
Ubicación: El Vigia Edo Merida
Mensajes: 147
Antigüedad: 12 años, 1 mes
Puntos: 1
Respuesta: Registrar estudiantes

Y este es el formulario que tengo para ingresar los datos del alumno y representante

<body>
<table width="99%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="290"><div id="slogan">
<div style="position:absolute; top:7px; left:165px; margin-left:-400px; width:648px; height:25px; font-size:25px; color:#000; font-family:'Courier New', Courier, monospace;"> <span class="Estilo18 Estilo148"><em>
<?php
echo "<font face='Times New Roman, Times, serif'>Bienvenido al Sistema Automatizado del Registro de Inscripción y Control de Estudios</font>";
?>
</em></span> </div>
</div>
<img src="../Imagenes/mm_entertainment.jpg" width="325" height="123" /></td>
<td width="750" class="hbg Estilo39">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
<div class="titulo">
<div align="center" class="Estilo1"></div>
</div>
<div id="centercontent">
<p>&nbsp;</p>
<hr size="1" noshade>
<form id="form1" name="form1" method="post" action="alumno.php" onSubmit="return validar(this)">
<table width="56%" border="0" align="center" class="bd">
<tr>
<td height="23" class="hr"><h2 align="center" class="Estilo8 Estilo23 Estilo14 Estilo143">Formulario para el Ingreso de Nuevos Estudiantes </h2>
<p align="center" class="Estilo8 Estilo13 Estilo23"><span class="Estilo28">
<?php
$conexion=mysql_connect("localhost","root","") or die("Problemas en la conexion");
mysql_select_db("inscripcion",$conexion) or die("Problemas en la selección de la base de datos");
$Ced_alumno=$_GET['paso'];
$Grado=$_GET['var'];
//echo"<img src="$_GET[paso]">"; ""para imagenes""
$registros=mysql_query("select count(*) as cantidad from alumnos",$conexion) or die("Problemas en el select:".mysql_error());
$reg=mysql_fetch_array($registros);
echo "Actualmente existen ".$reg['cantidad'];
echo " Estudiantes inscritos en la Institución";
?>
</span></p></td>
</tr>
</table>
<table width="752" height="578" border="1" align="center">
<tr>
<td colspan="4" bgcolor="#14285f" class="hr"><div align="center"><span class="contenido_seccion_3 Estilo30 Estilo14 Estilo142">Completa el siguiente formulario. Recuerda que los campos marcados con (*) son obligatorios</span></div></td>
</tr>
<tr>
<td colspan="4" bgcolor="#14285f" class="hr"><div align="center"><span class="Estilo30 Estilo2 Estilo142 Estilo144">Datos del Estudiante </span></div></td>
</tr>
<tr>
<td width="140" bgcolor="#14285f" class="hr"><div align="left" class="Estilo30 Estilo14 Estilo2 Estilo142"><span class="Estilo14"> * </span>C&eacute;dula </div></td>
<td width="170"><strong>
<input name="Ced_alumno" type="text" id="Ced_alumno" value="<?php echo "".$Ced_alumno; ?>" size="15" maxlength="12" readonly="readonly"/>
<label></label>
</strong></td>
<td width="233" bgcolor="#14285f"><span class="Estilo30 Estilo14 Estilo2 Estilo142"><span class="Estilo14">* </span>Nombres</span></td>
<td width="170"><input name="nombres" type="text" id="nombres" /></td>
</tr>
<tr>
<td bgcolor="#14285f" class="hr"><div align="left" class="Estilo30 Estilo14 Estilo2 Estilo142"><span class="Estilo14">* </span>Apellidos</div></td>
<td><label>
<input name="apellidos" type="text" id="apellidos" />
</label></td>
<td bgcolor="#14285f"><span class="Estilo30 Estilo14 Estilo2 Estilo142"><span class="Estilo14">* </span>Direcci&oacute;n</span></td>
<td><textarea name="direccion" rows="1" id="direccion"></textarea></td>
</tr>
<tr>
<td bgcolor="#14285f" class="hr"><div align="left" class="Estilo30 Estilo14 Estilo2 Estilo142"><span class="Estilo14">* </span>Sexo</div></td>
<td><label>
<select name="sexo" id="sexo">
<option value="">Seleccionar</option>
<option value="Masculino">Masculino</option>
<option value="Femenino">Femenino</option>
</select>
</label></td>