php - $_GET- how can i get name and type from the path? -
in 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> ';
error:
notice: undefined index: name
notice: undefined index: type
result: images/ch1.pdf?name=number?type=memo
i want values name , type.
you use 1 question mark ?
, seperate variables ampersands &
it should like
images/ch1.pdf?name=number&type=memo
Comments
Post a Comment