我写了一个程序,用户可以对提交的文章做评论,代码如下,
<html>
<head>
<title></title>
<script language=JavaScript>
    //<!--做判断
         function InputCheck(RegForm)
         {
   
              if (RegForm.comment.value == "")
              {
                   alert("评论内容不可为空!");
                   RegForm.comment.focus();
                   return (false);
              }
            
         }
 </script>
</head>
<body>
<center>
<?php
session_start();
//检测是否登录,若没登录则转向登录界面
if(!isset($_SESSION['userid'])){
    header("Location:login.html");
    exit();
}
include("menu.php");
echo "<a href='index1.php'>返回主页</a>";
include("config.php");
$sql="select * from text where id={$_GET['id']}";
$result=mysql_query($sql,$conn);
echo "<br>";
if($row=mysql_fetch_assoc($result)){
 echo $row['title'];
 echo "<br>";
 echo "作者:".$row['author'];
 echo "发表日期:".date("Y-m-d h:m:s",$row['time']);
 echo "<br><br><br>";
 echo $row['article'];
 echo "<br><br><br>";
}else{
 echo "该文章不存在";
}
?>
<table>
         <form name="RegForm" method="post" action="doComment.php" onSubmit="return InputCheck(this)">
         <tr>
              <td align="right">评论</td>
              <td> <td><textarea rows="5" cols="50" name="comment"></textarea></td>
         </tr>
  
         <tr>
              <td><input type="submit" name="submit" value="提交评论"/></td>
         </tr>
         </form>
    </table>
</table>
</center>
</body>
</html>
想知道怎么把Php代码中的$row["id"]传址到doComment.php中,使他在doComment.php中能够被调用,求各位大神指教