Multiplication Table
Multiplication Table
AIM:
Algorithm:
Step 6: Get the input value from the form using $_POST['number'] and assign it to a
variable called $number.
Program:
!DOCTYPE html>
<html lang="en">
<head>
<me<ta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Display Multiplication Tables</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 50px;
}
table {
border-collapse: collapse;
width: 50%;
margin-top: 20px;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: center;
}
th {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$number = $_POST['number'];
echo "</table>";
}
?>
</body>
</html>
Output:
Result:
Hence the above program is executed successfully and the output is verified