Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/05/2003, 13:38
kech
 
Fecha de Ingreso: marzo-2003
Mensajes: 277
Antigüedad: 21 años, 1 mes
Puntos: 0
Re: Como puedo hacer esto?

tienes algunos problemas con los codigos
te recomiendo que en ves del codigo principal pon esto


Código PHP:
<?php 

if(condicion){
$variable "ALGO";
}
?>

<html><head><title>Error en Datos</title></head>
<style type=\"text/css\">
    body{
    scrollbar-face-color: #aaaaaa; 
    scrollbar-highlight-color: #aaaaaa; 
    scrollbar-shadow-color: #aaaaaa; 
    scrollbar-3dlight-color: #eeeeee;
    scrollbar-arrow-color: #000000; 
    scrollbar-track-color: #e3e3e3; 
    scrollbar-darkshadow-color: #000000;
    }
TD { font-family: Tahoma; font-size: 11px; }
TH { font-family: Tahoma; font-size: 13px; }
TEXTAREA { border-bottom-width: 1px; border-color: #000000; border-left-width: 1px;
border-right-width: 1px; border-style: solid; border-top-width: 1px; font-family: Tahoma;
font-size: 10px; font-weight: bold; text-indent: 2px; }
INPUT { border-bottom-width: 1px; border-color: #000000; border-left-width: 1px;
border-right-width: 1px; border-top-width: 1px; color: #000000; font-family: Tahoma; 
font-size: 10px; font-weight: normal; text-indent: 2px; }
SELECT { background-color: #DFF4FF; font-family: Tahoma; font-size: 10px;
font-weight: bold; }
A:link { background-color: transparent; color: #215D83;
font-family: Tahoma; font-size: 11px; text-decoration: none; }
A:visited { background-color: transparent; color:  
</style>
<body background=\"img/back.gif\" leftmargin=\"0\" topmargin=\"0\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
  <tr>
    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
        <tr> 
          <td><img src=\"img/error.gif\" width=\"653\" height=\"132\"></td>
        </tr>
        <tr> 
          <td>Tienes los siguientes errores en tus datos:</td>
        </tr>
        <tr> 
          <td>[COLOR=red]<?php echo "$variable"?>[/COLOR] td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
salu2

Última edición por kech; 17/05/2003 a las 13:41