jueves, 1 de noviembre de 2012

<!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=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
<!--
body {
    background-color: #000099;
}
.Estilo1 {
    font-size: xx-large;
    color: #663300;
}
.Estilo2 {
    color: #FF9933;
    font-size: 16px;
    font-weight: bold;
}
.Estilo3 {
    font-size: 16px;
    color: #FFCC00;
    font-weight: bold;
}
.Estilo4 {
    font-weight: bold;
    font-size: 16;
    color: #FFCC00;
}
-->
</style></head>

<body>
<table width="200" border="1" align="center">
  <tr>
    <td><strong><span class="Estilo1">VELOCIDAD</span></strong></td>
  </tr>
</table>
<form id="form1" name="form1" method="post" action="nico.php">
  <label></label>
  <p>
    <label><span class="Estilo2">Tiempo</span>
    <input name="valor1" type="valor1" id="valor1" />
    </label>
  </p>
  <p>
    <label><span class="Estilo3">Velocidad inicial </span>
    <input name="valor2" type="valor2" id="valor2" />
    </label>
  </p>
  <p>
    <span class="Estilo3">
    <label>Aceleracion
    <input name="valor3" type="valor3" id="valor3" />
    </label>
  </span></p>
  <p>&nbsp;</p>
  <p>
    <label></label>
    <input name="calcular" type="submit" id="calcular" value="calcular" />
   
  </p>
  <p>
    <span class="Estilo4">
    <label></label>
  </span></p>
</form>
<p>&nbsp;</p>
</body>
</html>
<!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=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
<!--
body {
    background-color: #339999;
}
.Estilo1 {
    color: #996600;
    font-weight: bold;
    font-size: 24px;
}
-->
</style></head>

<body>
<?
$valor2=$_POST['valor2'];
$valor1=$_POST['valor1'];
$valor3=$_POST['valor3'];
$res=($valor1*$valor3)+$valor2;
echo " si la velocidad inicial es de $valor1 aceleracion es $valor3 y tiempo $valor2 entonces su velocidad final es $res"

?>

</body>
</html>
Documento sin título