在items.php
$filepath = mysql_real_escape_string($_GET['filepath']);
$name = mysql_real_escape_string($_GET['name']);
$type = mysql_real_escape_string($_GET['type']);
echo $name,$type;
echo '<td><a target=\"_blank\" href="'.$filepath.'" title=\"\">'.$filepath.'</a> ';
错误:
Notice: Undefined index: name
Notice: Undefined index: type
结果:images/ch1.pdf?name=number?type=Memo
我想从名称和类型的值。
尝试'的var_dump($ _ GET)'看名称和类型 – alfasin 2013-05-03 05:03:42