$GET,PHP-错误:未定义索引:路径
我想在另一个窗口中显示文件路径,但我不知道该怎么办。请帮忙。谢谢大家! 在search_form.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;"> <
<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']);