Here is my salution with session handling:
////////////////////////////////////////////////////////////
<?php
session_start();
function add_row(){
echo " <tr bgcolor=\"#CCFFFF\">";
echo " <td width=\"6%\"><input type=\"text\" name=\"textfield\"
size=\"5\"></td>";
echo " <td width=\"20%\"><input type=\"text\" name=\"textfield2\"
size=\"20\"></td>";
echo " <td width=\"12%\"><input type=\"text\" name=\"textfield3\"
size=\"20\"></td>";
echo " <td colspan=\"4\"><input type=\"text\" name=\"textfield33\"
size=\"32\"></td>";
echo " <td width=\"23%\"><input type=\"text\" name=\"textfield42\"
size=\"20\"></td>";
echo " </tr> ";
}
if (!isset($counter)){
$counter=1;
session_register("counter");
}
else
++$counter;
?>
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<title></title>
</HEAD>
<BODY bgColor=#FFFFFF leftMargin=0 topMargin=20>
<FORM action="<?=$PHP_SELF?>" method=post>
<p align="center"><b><font face=".VnTimeH">NHËP TH¤NG TIN
THIÕT
BÞ</font></b></p>
&nbs
p;
<table width="75%" border="0" cellspacing="2" align="center"
cellpadding="1">
<tr bgcolor="#FF9933">
<td height="23" width="6%">STT</td>
<td height="23" width="20%"><font face=".VnTime">Tªn thiÕt
bÞ</font></td>
<td height="23" width="12%"><font face=".VnTime">Sè
Seri</font></td>
<td height="23" colspan="4"><font face=".VnTime">T×nh tr¹ng
biÕn
®éng</font></td>
<td height="23" width="23%"><font face=".VnTime">Ghi
chó</font></td>
</tr>
<?php
for ($i = 1; $i <= $counter; $i++) {
add_row();
}
?>
<tr bgcolor="#CCFFFF">
<td colspan="8"><b><i>
<input type="submit" name="S1" value="Add More">
</i></b> </td>
</tr>
</table>
<INPUT name=id type=hidden>
<DL>
<DT><B><I>
</I></B>
<DT><I><B> </B></I>
</DL>
<DIV align=center> </DIV>
<BLOCKQUOTE>
<BLOCKQUOTE>
<P> &
nbsp;  
; &nb
sp;
<font
face=".VnTime" size="4">
</font> &nb
sp; &
nbsp;
</P>
</BLOCKQUOTE></BLOCKQUOTE>
<P> </P></FORM>
</BODY></HTML>
////////////////////////////////////////////////////////////////////////////
/////
-----Original Message-----
From: Duy B [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 3:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Programming by PHP
Dear all,
I have a file HTML as following:
.......
Thanks you very much
BaDu
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]