Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/289.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
$GET,PHP-错误:未定义索引:路径_Php_Get - Fatal编程技术网

$GET,PHP-错误:未定义索引:路径

$GET,PHP-错误:未定义索引:路径,php,get,Php,Get,我想在另一个窗口中显示文件路径,但我不知道该怎么办。请帮忙。谢谢大家! 在search_form.php中 <td><a href="items.php?filepath=' .urlencode($path). '"onClick="MM_openBrWindow(\'items.php?filepath=' .urlencode($path). '\',\'window\',\'width=650,height=500\'); return false;"> <

我想在另一个窗口中显示文件路径,但我不知道该怎么办。请帮忙。谢谢大家!

在search_form.php中

<td><a href="items.php?filepath=' .urlencode($path). '"onClick="MM_openBrWindow(\'items.php?filepath=' .urlencode($path). '\',\'window\',\'width=650,height=500\'); return false;"> <img src="Folder-Blank-icon.png"> </a></td>
这是因为在您的表格中,您有:

<a href="items.php?filepath=...


您的
items.php
正在查找参数
?path=
,但您正在将用户导航到
?filepath

@user2335183如果这解决了您的问题,您可以使用向上/向下投票下的绿色箭头将其标记为答案
$filepath = mysql_real_escape_string($_GET['filepath']);
echo $filepath; 
<a href="items.php?filepath=...
$filepath = mysql_real_escape_string($_GET['filepath']);