Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/08/2004, 07:18
Redy
 
Fecha de Ingreso: agosto-2004
Mensajes: 12
Antigüedad: 19 años, 8 meses
Puntos: 0
Pregunta Ayuda Con Php

hola como estan

necesito ayuda please !!!

no puedo ejecutar script de php 4.23 en php 5 no me muestra nada no me sale ningun erros e aqui el codigo de uno de ellos

***********VALIDAR.PHP**************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
<!--
body,td,th {
color: #FFFFFF;
}
body {
background-color: #000000;
}
-->
</style></head>

<body>

</body>
</html>
<?PHP
include ("Resultado.php");
$total = calculo($numero, $numero1);

echo "<h4>$numero1 es el $total[0] % de $numero Y el $numero1% de $numero es : $total[1] \n </h4>";
?>

*****************RESULTADO.PHP********************

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
<!--
body,td,th {
color: #FFFFFF;
}
body {
background-color: #000000;
}
-->
</style></head>

<body>

</body>
</html>

<?PHP
function calculo($numero, $numero1)
{

#$suma= ((($numero1 * 100) / $numero) /100);
#$suma1= ((($numero * 100) / $numero1) /100);



$suma= (($numero1 * 100) / $numero);
$suma1= (($numero * $numero1) / 100);

$total[0]= $suma;
$total[1]= $suma1;

return array($total[0], $total[1]);

}
?>

******************PORCENTAJE.PHP****************** *

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Convertir</title>
</head>

<body bgcolor="#000000" text="#FFFFFF">

<form action="validar.php" method="post">
Numero Ingresado
<input name="numero" type="text" size="12" maxlength="12">
<input name="numero1" type="text" size="12" maxlength="12">
%
Porcentaje
<input type="submit" name="Submit" value="Calcular">
</form>

</body>
</html>