Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/02/2009, 23:04
Avatar de jfl_freak
jfl_freak
 
Fecha de Ingreso: enero-2009
Ubicación: Guatemala
Mensajes: 96
Antigüedad: 15 años, 3 meses
Puntos: 1
Respuesta: Error con ECHO

Probe asi como me dijiste, con las etiquetas completas pero aun asi no, aca te pongo el resto del codigo:

Código PHP:
<?php

session_start
();

if (IsSet(
$_SESSION['Administrador'])){

echo
' <!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>

<title>
Buscar Estudiante
</title>

<!-- Meta Tags -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!-- CSS -->
<link rel="stylesheet" href="css/structure.css" type="text/css" />
<link rel="stylesheet" href="css/form.css" type="text/css" />

<!-- JavaScript -->
<script type="text/javascript" src="scripts/wufoo.js"></script>

<script language="javascript">

function mensaje(){

texto=\'\';
<?
if($_GET[\'error\'] == 1) {//Contraseas no son iguales
       echo \'texto="Error al Crear Cuenta: Las Constraseas no son iguales";\';}else{
    if ($_GET[\'error\'] == 2)//La Contrasea debe de tener entre 6 y 16 caracteres
       echo \'texto="Error al Crear Cuenta: La Contrasea debe de tener entre 6 y 16 caracteres";\';
    else{
        if ($_GET[\'error\'] == 3)
            echo \'texto="Error al Crear Cuenta: Ya Existe usuario o Ya Existe una Cuenta con ese correo";\';
        else{
            if ($_GET[\'error\'] == 4)
                echo \'texto="Error al Crear Cuenta: El Numero de Orientacion o de Carnet Ya Existe";\';
            else{
                if ($_GET[\'error\'] == 5)
                    echo \'texto="Error al Crear Cuenta: Ya Existe Usuario con ese Nombre";\';
            }
        }
    }
}
?>
alert(texto); 

history.back();

}
</script>


</head>
<body id="public" <?php if(isset($_GET[\'error\'])){ echo \'onLoad="mensaje();"\';}?> >
<div id="container">

<h1 align="center" id="logo"><a>Wufoo</a></h1>

<form id="form56" name="form56" class="wufoo topLabel" autocomplete="off"
    enctype="multipart/form-data" method="get" action="../librerias/busqueda_estudiante.php"> '
;
ahora si esta completo

Saludos