0
I am unable to record the value typed in input
and then solve the calculation.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<form method="post">
<label for="GET-name">Nome:</label>
<input type ="text" name="nome"/><br>
<label for="GET-name">Altura:</label>
<input type ="text" name="altura"/><br>
<label for="GET-name">Peso :</label>
<input type ="text" name="peso"/><br>
<label for="GET-name">Idade:</label>
<input type ="text" name="idade"/><br>
<input type = "submit" value="calcular">
</form>
<?php
$nome =$_post['nome'];
$altura= $_post['altura'];
$peso=$_post['peso'];
$idade=$_post['idade'];
$alt2 = $altura*$altura;
$adpo = $peso\$alt2;
ECHO $nome."<br>".$altura."<br>".$peso."<br>".$idade."<br>".$adpo;
?>
</body>
</html>
Save where? In database? Which calculation?
– David Alves
display the results in an HTML page.
– Italo Daniel
calculation of body capacity.
– Italo Daniel