PHP 

MULTIPLICATION TABLE

1
MULTIPLICATION TABLE

Program LanguageTongueHP

Program Requirements:

1.PHP server(like EasyPHP)

2.Web Browser(Like Firefox)

Program Description:

Get the input for html page and submit the input then get the multiplication table

for web server...

PROGRAM:

File Name : Mul.html

Code:
<html>
<body bgcolor=silver>
<br>
<form action="while1.php">
<center><h2>multiplication table</h2></center>
<hr size=2>
<br>
enter a number<input type="text" name=num>
<input type="submit" value="table">
</form>
</body>
</html>

File Name: while1.php


Code:
<?php
$num=$_GET['num'];
$i=1;
while($i<=10)
{
$val=$num*$i;
echo "$num*$i=$val<br>";
$i++;

}
?>
Heart
Make a Great History
Super bro...
New&nbsp;Share your Study Materials with us :&nbsp;Click Here