注意:未定义的索引错误。救命!!! [英] Notice: Undefined index Error. Help!!!
问题描述
Hello Folks。感谢我在这里收到的所有帮助。我试图写一个上传文件。在我开始报告错误之前一切正常。首先,我试图检查上传的文件,要求print_r显示名称,类型,大小,tmp_name和错误的关联数组。它可以正常工作,但它在我加载页面时会出现这个错误
注意:未定义的索引:C:\ wamp \\\ btb_sandbox \\中的file_upload 27号线上的\\ upload.php
我没有把它拿得很严重然后我继续我的错误报告。它给出了以下错误
注意:未定义的索引:第18行的C:\ wamp \www \ btb_sandbox \ upload.php中的file_upload
注意:未定义的索引:第19行的C:\ wamp \ www.hbb_sandbox \ upload.php
我知道file_upload是未定义的,但我不知道如何解决它。或者是我的html标签?请帮忙。这是代码。谢谢
Hello Folks. Thanks for all the help i have received here. I was trying to write an upload file. It was ok until i began error reporting. First i tried to inspect the file uploaded by asking the print_r to show the associate array of name, type, size, tmp_name and error. It works all right but it gives this error just as i load the page
Notice: Undefined index: file_upload in C:\wamp\www\btb_sandbox\upload.php on line 27
I didnt take it quite serious then i continues my error reporting. It gave the following errors
Notice: Undefined index: file_upload in C:\wamp\www\btb_sandbox\upload.php on line 18
Notice: Undefined index: in C:\wamp\www\btb_sandbox\upload.php on line 19
I understand that file_upload is undefined, but i dont know how to go around it. Or is it from my html tags? Please help out. Here is the code. Thanks
推荐答案
如果您调用页面以便上传文件,
if you call the page in order to upload a file, the
_FILES数组为空。
_FILES array is empty.
感谢Dormilich,我怎么解决呢???
Thanks Dormilich, so how can i solve it???
这篇关于注意:未定义的索引错误。救命!!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!