id不是已显示出来了吗?帖出你的部分代码来.==================
隐藏层中的表单:<form name="rep" ..><input type=hidden name=id>
===
<button onclick="document.all.rep.id.value='当前留言的ID'">reply</button>
隐藏层中的表单:<form name="rep" ..><input type=hidden name=id>
===
<button onclick="document.all.rep.id.value='当前留言的ID'">reply</button>
while($array=mysql_fetch_array($sql)){
echo '<BR><TABLE id=AutoNumber6 borderColor=#9cacd0 height=64 cellSpacing=0
cellPadding=0 width=740 bgColor=#f5f7fb border=1>
<TBODY>
<TR>
<TD background=images/Cent.gif bgColor=#f5f7fb colSpan=3
height=16> <P align=right><A name=1></A></P></TD>
</TR>
<TR>
<TD width=135 background=images/d3.gif bgColor=#f5f7fb
height=16><P align=center><FONT face=Verdana>【大名】</FONT> </P></TD>
<TD style="BORDER-RIGHT: medium none" width=524
background=images/d3.gif bgColor=#f5f7fb height=16>标题:'.$array[topic].''. $no.'</TD>
<TD style="BORDER-LEFT-STYLE: none" width=83
background=images/d3.gif bgColor=#f5f7fb
border-left-width:medium><A title=回复
onclick="tmt_divWipeRight(\'Layer2\',\'0.2\',\'0\');MM_showHideLayers(\'Layer2\',\'\',\'show\')"
href="javascript:;"><IMG height=12
src="images/post.gif" width=12 border=0>回复 </A><A
onclick=del_post(1)><IMG height=12 src="images/del.gif"
width=12>删除</A></TD>..................... <TD width=135 background=images/d3.gif bgColor=#f5f7fb
height=19><P align=center>留言NO:'.$array[id].'</P></TD>...... '}
=========================
http://expert.csdn.net/Expert/topic/2100/2100049.xml?temp=.4269068