|
Posted by Pedro Graca on 11/15/06 11:17
Pedro Graca wrote:
> And I'd use like this:
>
> <?php
<snip>
> # display file list
> foreach ($_SESSION['files'] as $k=>$f) {
> echo '<a href="dl.php?id=', $k, '">', $f, "</a><br>\n";
No need to hard code the script name here!
echo '<a href="', $_SERVER['PHP_SELF'], '?id=', $k, '">', $f, "</a><br>\n";
> }
> ?>
--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.
Navigation:
[Reply to this message]
|