Web Technologies

Web Technologies 

Slip17

Q.1)  Write a PHP script to display a Multiplication table in tabular format. Design HTML page to accept a value. [Marks30] 

Solution

b.html
<html>
<head>
</head>
<body>
<form method=post action="a.php">
Enter any number:<input type=text name=no><br>
<input type=submit value="submit">
</form>
</body>
</html>


a.php
<?php
$no=$_POST['no'];
echo"<table border=1>";
for($i=1;$i<=10;$i++)
{
echo"<tr><td>".$no*$i."</td></tr>";
}
echo"</table>";
?>


BCA Pratical Solution

My name is Vivek And I from Mumbai and Complete my Graduation Bca.my Age is 23 Years.

Post a Comment

Previous Post Next Post

DBMS Practical Slips