做好了~~嘿嘿,隐藏文件域
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<input type="text" name="filetext" id="filetext" />
<input type="button" name="Submit" value="请选择文件" onclick="file1.click()" />
<div style="visibility:hidden;">
<input type="file" name="file1" id="file1" onchange="filetext.value=this.value" />
</div>
</form>