I'm having an activity and I'm stuck on this question:
Create a program in PHP , where the form has choices of geometric shapes (triangle, square, rectangle and trapezoid.). Once 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, do not you see, I want tips on how to write this form. The basics I know how to do, but this one with a choice I do not know. If someone can tell me only the correct term that I should search for, it will 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>