先上个效果图:
Sample6_1.php 中创建Form:
<BR>//显示上传状态和图片 <BR><div id="showimg">
//上传文件需要定义enctype,为了显示图片将target设为uploadframe
<form id="uploadform" action="process_upload.php" method="post"
enctype=”multipart/form-data” target=”upl
本&文来源gaodai^.ma#com搞#代!码网
搞gaodaima代码oadframe”>
Upload a File:
//上传文件
<iframe id=”uploadframe” name=”uploadframe” src=”process_upload.php” class=”noshow”></iframe>