8 (A)
8 (A)
7th A
PROGRAM 8(a)
<html>
<head>
<style>
table, td, th
width: 35%;
text-align: center;
background-color: DarkGray;
input,p { text-align:right; }
</style>
</head>
<body>
<form method="post">
<table>
/></td>
1
<td rowspan="2"><input type="submit"
name="submit"
value="calculate"></td></tr>
<tr><td>Second Number:</td><td><input
type="text"
name="num2"/></td></tr>
</form>
<?php
$num1 = $_POST['num1'];
$num2 = $_POST['num2'];
:</td><td><p>".($num1*$num2)."</p></td>";
echo "</table>";
else
2
VALID NUMBER');</script>";
?>
</body>
</html>
OUTPUT: