请问在下面的程序中的upload是什么意思?实现什么作用呢?它会显示什么?为什么运行时会有“浏览”这个字样呢,它是什么道理?
<?php
echo $_POST[file];
?>
<form name="form1" method="post" action="ch05010.php">
<input type="file" name="file" size="15"/>
<input type="submit" name="upload" value="上传"/>
</form>
<?php
echo $_POST[file];
?>
<form name="form1" method="post" action="ch05010.php">
<input type="file" name="file" size="15"/>
<input type="submit" name="upload" value="上传"/>
</form>
2、在你的浏览界面上不显示什么,只是标签的一个属性name的值
3、运行会出现“浏览"的字样,是因为你的<input type="file"....>这句,这句话可以实现从本地选择文件,也就是“浏览"的字样的控件
另:看来楼主对html不是很熟悉,推荐楼主看www.w3school.com.cn 这个现在已经有提供离线版下载