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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -