السلام عليكم
حاولت كتابة كود html للادخال و php للإخراج ،
الhtml يدخل عدد الاعمدة row وعدد التقاطع columns و اللون و العرض
<html> <head> <title> test </title> </head> <body> <form action="there.php" method="get"> Rows <input type="text" value="row"> <br> Columns <input type="text" value="Col"> <br> Width <input type="text" value="width"> <br> Color <input type="text" value="color"> <br> <input type="submit" value="Draw"> <br> </form> </body> </html>
بعد ذلك قمت بكتابة كود الphp وكنت اريد شكل المخرجات كالتالي ،

وهذا كود الphp
<?php
for ( $i=0; i < $_GET ["row"]; $i++)
{
echo "<tr>";
for ( $j=0; $j < $_GET ["col"]; $j++)
{
$result = $_GET ["col"] * $_GET ["row"];
echo "<td>. $result ."</td>";
}
echo "</tr>";
}
?>اتمنى اعرف وين الاخطاء