Thread: variable in url
View Single Post
Old Jan 17th, 2006, 6:35 AM   #2
magic_e
Programmer
 
Join Date: Jan 2005
Posts: 44
Rep Power: 0 magic_e is on a distinguished road
Your causing php to think your finished with the string when you use the double quotes (") for the href=",

so this
[PHP]$file_string = "<li>Get file: <a href="download.php?file=.$file."> ".$file."</a> (".human_file_size(filesize($file)).")</li>";[/PHP]

should be this
[PHP]
$file_string = '<li>Get file: <a href="download.php?file='.$file.'"> "'.$file.'"</a> ("'.human_file_size(filesize($file)).'")</li>';[/PHP]


hope it helps

Magic E
magic_e is offline   Reply With Quote