Contents
<?php
$n=8;
$m=8;
if(isset($_REQUEST['rreshta']))
{
$n=$_REQUEST['rreshta'];
$n=$n+0;
if ($n==0) exit('kujdes');
}
if(isset($_REQUEST['kollona']))
$m=$_REQUEST['kollona'];
?>
<html>
<head>
<title>Tabele Shahu</title>
<script language="JavaScript">
function tell(x,y)
alert('Ju keni klikuar ne kutine '+x+','+y);
</script>
</head>
<body>
<table border="1" >
for($i=1;$i<=$n;$i++)
<tr>
for($j=1;$j<=$m;$j++)
<td height="50" width="50" onClick="tell(<?php echo $i; ?>,<?php echo $j; ?>);"
if((($i+$j)%2)==0)
echo 'bgColor="brown" ';
else
echo 'bgColor="white" ';
>
</td>
</tr>
</table>
</body>
</html>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<form name="form1" method="get" action="shahu2.php">
Rreshta
<input name="rreshta" type="text" id="rreshta">
<br>
Kollona
<input name="kollona" type="text" id="kollona">
<input type="submit" name="Submit" value="KRIJO">
</form>
<p> </p>
<form name="form2" method="get" action="shahu2.php">
<p>Rreshta
<select name="rreshta" id="rreshta">
<option value="8" selected>Tete</option>
<option value="10">Dhjete</option>
<option value="12">Dymbedhjete</option>
<option value="40">Dyzet</option>
</select>
<select name="kollona" id="kollona">
</p>
<p>
<input type="submit" name="Submit2" value="KRIJO">
<form name="form3" method="post" action="shahu2.php">
<input name="rreshta" type="hidden" id="rreshta" value="10">
Kollonat
<input name="kollona" type="password" id="kollona">
<input type="submit" name="Submit3" value="KRIJO">