1
I have an activity and I’m stuck on it:
Create a program in PHP, where the form has choices of geometric figures (triangle, square, rectangle and trapezoid). As soon as the user selects the figure, he can type in the fields the values of the sides of the figure and the system must calculate the value of the area.
I’m not asking for the answer, don’t look at it like that, I want tips on how to make this form. I know the basics, but this one with choice I don’t know. If anyone can just tell me the correct term that I should research, it will already be of great value.
<!DOCTYPE html>
<html>
<head>
<title>Valor Area</title>
<meta charset="utf-8">
</head>
<body>
<form action="valorArea.php">
<label>Escolha uma forma geométrica da lista para calcular a sua área:</label>
<select >
<option >Triângulo</option>
<option >Quadrado</option>
<option >Retângulo</option>
<option >Trap ézio</option>
</select>
<br><br>
<input type="submit" value="Calcular">
</form>
</body>
</html>
If possible click [Edit] and add the code you have tried.
– Valdeir Psr
Please read this post https://pt.meta.stackoverflow.com/questions/1078/como-e-por-que-aceitar-uma-resposta/1079#1079
– user60252