高手来抢分,抢不到的也来练等级。关于entype问题!!! 费那劲干啥?上传文件需要一个真正完整的web服务器,一般调试软件只是提供简化版的。不过这并不影响程序的开发,毕竟最终你不是在调试环境中运行 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 呵呵,上传是酱紫的<form method=post enctype="multipart/form-data" action=“upload.php"><input type=file name="thefile"><input type="submit" value="upload"></form>upload.php<?echo "<br>http:".$HTTP_POST_FILES["thefile"]["name"];/*就是说不能用_POST["thefiel"]来……*/echo "<br>".$HTTP_POST_FILES["thefile"]['type'];echo "<br>".$HTTP_POST_FILES['thefile']["size"];echo "<br>".$HTTP_POST_FILES['thefile']["tmp_name"];if(is_uploaded_file($thefile)){ $file="upload\\".$thefile_name; move_uploaded_file($thefile,$file);} ?> php.ini中register_globals = Off改成register_globals = On 楼主可以按这篇文章试着 一下,http://phpe.net/articles/260.shtml图文的,应该可以看的明白。 果然唠叨的有道理。"一般调试软件只是提供简化版的"====这个phped有点不一般."上传文件需要一个真正完整的web服务器"====完整的web服务器包括哪些东东?谢谢先! to okdw:谢谢提醒.不过我的表单提交不光是图片,而且是"图文并茂".就是还带了<input type=text name=XX>...等等.现在是只要有ENCTYPE加上去$_POST数组里什么都没有.比如ECHO $_POST['XX']给你一个NOTICE提示XX不存在.feel8:鸟兄的这篇文章好啊!可是我的IIS没有问题啊!就是说同样一段程序用IIS解析没有上诉问题,但是在PHPED里面就有.我搜索了历史记录,也有这样的问题.好象到现在都没有解决,可能那为老兄重装了PHP.但是我重装了好多遍了.想拿分的也可以搜索"ENCTYPE".问题和这两种差不多.我是属于天天挂线,马上给分的那种. 我用过了,可以的<form method=post enctype="multipart/form-data" action="upload.php"><input type=file name="thefile"><input type="submit" value="upload"><input type="text" name="nn"><input type="hidden" name="hh" value="xxx"></form>upload.php:<?echo "<br>".$thefile;echo "<br>".$thefile_name;echo "<br>".$thefile_size;echo "<br>".$thefile_type;echo "<br>http:".$HTTP_POST_FILES["thefile"]["name"];echo "<br>".$HTTP_POST_FILES["thefile"]['type'];echo "<br>".$HTTP_POST_FILES['thefile']["size"];echo "<br>".$HTTP_POST_FILES['thefile']["tmp_name"];echo "<br>".$_POST["nn"];echo "<br>".$_POST["hh"];if(is_uploaded_file($thefile)){ $file="student1\\".$thefile_name; move_uploaded_file($thefile,$file);} ?>结果有hh和nn的值 okdw:对于你的代码的正确性,我深信不移.不过,我的问题好象不在这里. pay attention to the topic php.ini中register_globals = Off改成register_globals = On 请问怎么让FPDF支持日文? URL 重定向的问题 求 获取长字符串中两个特定字符串之间的字符串方法 PHP字符截取问题,急急急 又问一个正则。。 数组初学者问题 大家能不能帮忙推荐一份关于城市分类信息代码? PHP连接ORACLE数据库问题(急等) PHP汉字转化为拼音问题 有关表单中的列表框的问题 url 值接收不到??? php问题?
<form method=post enctype="multipart/form-data" action=“upload.php">
<input type=file name="thefile">
<input type="submit" value="upload">
</form>upload.php
<?
echo "<br>http:".$HTTP_POST_FILES["thefile"]["name"];/*就是说不能用_POST["thefiel"]来……*/
echo "<br>".$HTTP_POST_FILES["thefile"]['type'];
echo "<br>".$HTTP_POST_FILES['thefile']["size"];
echo "<br>".$HTTP_POST_FILES['thefile']["tmp_name"];
if(is_uploaded_file($thefile))
{ $file="upload\\".$thefile_name;
move_uploaded_file($thefile,$file);}
?>
我是属于天天挂线,马上给分的那种.
<form method=post enctype="multipart/form-data" action="upload.php">
<input type=file name="thefile">
<input type="submit" value="upload">
<input type="text" name="nn">
<input type="hidden" name="hh" value="xxx">
</form>upload.php:<?
echo "<br>".$thefile;
echo "<br>".$thefile_name;
echo "<br>".$thefile_size;
echo "<br>".$thefile_type;
echo "<br>http:".$HTTP_POST_FILES["thefile"]["name"];
echo "<br>".$HTTP_POST_FILES["thefile"]['type'];
echo "<br>".$HTTP_POST_FILES['thefile']["size"];
echo "<br>".$HTTP_POST_FILES['thefile']["tmp_name"];
echo "<br>".$_POST["nn"];
echo "<br>".$_POST["hh"];
if(is_uploaded_file($thefile))
{ $file="student1\\".$thefile_name;
move_uploaded_file($thefile,$file);}
?>结果有hh和nn的值
对于你的代码的正确性,我深信不移.不过,我的问题好象不在这里.