PHP Program to Find Table of a Number



In this post I am going to describe the basic PHP Program give us the table of the number till 10th position.

<html>
	<head>
		<title>Number Table</title>
	</head>
	<body>
		<form action="" method='POST'>
		<label for="number">Please Enter a Number</label>
		<input type="text" name="number" value="">
		<br><br>
		
		<input type="submit" value="Done" name="submit">
		</form>
	</body>
</html>

<?php
if(isset($_POST['submit']))
	{
		$number= $_POST['number'];
		for($i=1;$i<=10;$i++)
		{
			echo $number*$i;
			echo "<br>";
		}
	}
?>

Program Output:

Stay tuned for the PHP Magento, WordPress and Magento2 latest tutorial and updates, Hope you enjoyed reading, if you need the professional Magento Development / PHP we can help you, just Click on the Link and send me your requirements.

Please Like the Post on Facebook or Google+.