You are here: Re: HELP! Trying to add Email Notification to Download File Code « PHP Programming Language « IT news, forums, messages
Re: HELP! Trying to add Email Notification to Download File Code

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация