无需过滤,放在一起就行了,记得写上enctype="multipart/form-data",我都是这么做的,直接去变量即可啊。<form name="form1" enctype="multipart/form-data" method="post" action="test.php">
<table width="416" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
<td width="416">标题及相关说明: 
  <input name="title" type="text" id="title2">
  <input  type="hidden"  name="MAX_FILE_SIZE" value="2500000">
</td>
  </tr>
  <tr>
<td><textarea name="content" cols="100"></textarea></td>
  </tr>
  <tr>
<td height="20">如果文件较大可以在线上载: 
  <input name="userfile" type="file">
  (文件不大于2M)</td>
  </tr>
</table><br>
<table width="348" height="22" border="0" cellpadding="0" cellspacing="1" align="center">
  <tr>
  
<td width="153" height="20"> <div align="center"> <INPUT TYPE="submit"></div></td>
<td width="75"> <div align="center"><INPUT TYPE="reset"></div></td>
  </tr>
</table><input type="hidden" name="add_sub" value="add_sub">
<input type="hidden" name="bid_for_id" value="<? echo $bid_for_id;?>">
</form>处理页面:
<?
echo $title."<Br>";
echo $content."<Br>";
echo $userfile;
?>