Código PHP:
<!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>Modulo de Alumnos</title>
<style type="text/css">
<!--
.Estilo1 {
font-size: 24px
}
-->
</style>
</head>
<body>
<script>
function valida_envia(){
if (document.forms.alumno.elements['codigo'].value.length == 0) {
alert('Por favor ingrese un valor para el campo "Codigo"');
document.alumno.codigo.focus()
return 0;
}
if (document.forms.alumno.elements['clave'].value.length == 0) {
alert('Por favor ingrese un valor para el campo "Clave"');
document.alumno.clave.focus()
return 0;
}else{
//el formulario se envia
document.alumno.submit();
}
return true;
}
</script>
<?
session_start();
$_SESSION["tipo"]=1;
?>
<div align="center"></div>
<table width="200" border="0" align="center">
<tr>
<td colspan="2"><img src="imagenes/alumnos2.png" width="691" height="122" border="0" /></td>
</tr>
<tr>
<td colspan="2"><div align="center" class="Estilo1">MODULO DE INGRESO</div></td>
</tr>
<tr>
<td width="321">
<tr>
<td><div align="right">CODIGO:</div></td>
<td width="366">
<form id="alumno" name="alumno" method="post" action="alumnos/acceso_alumno.php">
<label>
<input name="codigo" type="text" id="codigo" size="15" maxlength="9" />
</label>
<tr>
<td><div align="right">CLAVE:</div></td>
<td>
<label>
<input name="clave" type="password" id="clave" size="15" maxlength="15" />
</label> </td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">
<label>
<div align="center">
<label for="captcha">Código de seguridad:</label>
<img src="captcha/securimage_show.php" name="captcha" width="150" height="70" id="captcha" /> </div>
<div align="center">
<label for="codigo_seguridad">Repetir código:</label>
<input type="text" name="captchacode" />
</div>
</label>
<div align="center">
<input type="button" value="Enviar" onclick="valida_envia()">
</div> </td>
</tr>
</form>
<tr>
<td colspan="2"> <p align="left" class="Estilo2"><img src="imagenes/volver.png" alt="regresar" width="110" height="45" border="0" onClick="history.back(-1);"></p></td>
</tr>
</table>
</body>
</html>
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\iutc\alumnos.php:45) in C:\xampp\htdocs\iutc\alumnos.php on line 46
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\iutc\alumnos.php:45) in C:\xampp\htdocs\iutc\alumnos.php on line 46
alguien sabra porque ocurre esto o que debo hacer