You are on page 1of 2

<!

DOCTYPE html>

<html>

<head>

<title>Table de Multiplication</title>

</head>

<body>

<form method="POST" action="">

Nombre : <input type="text" name="nbr"><p>

<input type="submit" name="submit" value="Calculer">

<input type="reset" name="reset" value="Annuler">

</form>

</body>

</html>

<?php

if (isset($_POST['submit']))

$Nombre = $_POST['nbr'];

for ($i=0; $i <=10 ; $i++)

echo $Nombre;

echo " * ";

echo $i;

echo " = ";

echo $Nombre*$i;

echo "<br>";

}
?>

You might also like