Re: How to update table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



why u make some textbox and button for user?

so, user can make his or her own table :)

<HTML>
<HEAD>
<TITLE> BARIS DAN KOLOM </TITLE>
</HEAD>
<BODY>
<?php
echo "<table border=\"1\">";
for ($row=1;$row<=$_POST['Baris'];$row++) {
echo "<tr>";
for($col=1;$col=<$_POST['Kolom'];$col++){
echo "<td>row $row, colomn $col</td>";
}
echo "</tr>";
}
echo"</table>";
?>
<FORM METHOD="POST" ACTION="ROW DAN COLOM.PHP">
<TABLE>
<TR>
<TD>Please Input the number for ROW: </TD>
<TD><INPUT TYPE="NUMBER" NAME="Baris"></TD>
</tr>
<br>
<tr>
<TD>Please Insert the number for COLOMN: </TD>
<TD><INPUT TYPE="NUMBER" NAME="Kolom"></TD><BR>
<TD><P><INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="PROSES"></TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>

I just amature



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux