Ver Mensaje Individual
  #3 (permalink)  
Antiguo 31/07/2012, 00:50
ucaff
 
Fecha de Ingreso: mayo-2009
Mensajes: 2
Antigüedad: 15 años, 9 meses
Puntos: 0
De acuerdo Respuesta: error en linea 35

Cita:
Iniciado por skiper0125 Ver Mensaje
Hola que tal. Bievenid@ al foro

Te recomiendo que la linea de session_start() debe de ir al principio del código ejemplo

Código PHP:
<?php
     session_start
();
?>
<!DOCTYPE HTML>
<html lang="es-ES">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <?php
        
// tu código
    
?>
</body>
</html>
Saludos

Muchas gracias amigo me salvaste.......
tube que borrar un monton de codigo que estaba antes de esa linea y puse tu ejemplo y se solusiono muchas gracias

estaba asi
Código PHP:
        <script language="javascript">
            function r(img_name, img_src)
            {
                document[img_name].src = img_src;
            }
            
            function tel()
            {
                var nStr = parseInt( document.getElementById('str').value, 10 );
                var nDex = parseInt(document.getElementById('dex').value, 10);
                var nInt = parseInt(document.getElementById('int').value,10);
                var nCon = parseInt(document.getElementById('con').value,10);
                var nFree = parseInt(document.getElementById('free').value, 10);
                var nTotal = document.getElementById('total');
                
                var avail = <?php print $statsp?>
                var total = 0;
                total += nStr;
                total += nDex;
                total += nInt;
                total += nCon;
                total += nFree;
                
                
                nTotal.value = total;
                
                if( total > avail ) nTotal.style.background = '#440000';
                else if( isNaN(total) ) nTotal.style.background = '#440000';
                else nTotal.style.background = '#004400';
                
            }
solo cambie eso por el ejemplo y quedo perfecto jeejej


grax de nuevo