So you want the footer to link to the page that called it?

echo "<a href=\"$SCRIPT_NAME\">text</a>
or
echo "<a href=\"$PHP_SCRIPT\">text</a>

Justin Buist
Trident Technology, Inc.
4700 60th St. SW, Suite 102
Grand Rapids, MI  49512
Ph. 616.554.2700
Fx. 616.554.3331
Mo. 616.291.2612

On Tue, 14 Aug 2001, travis forden wrote:

> Hi.
>
> This is my setup. I have a PHP file that pulls in two includes - content and footer. 
>content is done with readfile() since no processing done (in most cases). footer in 
>done with include() - or will be once i find an answer to my question.
>
> currently the footer is exactly the same for each page. i want to add a dynamic link 
>that uses the filename of the includer file.
>
> in effect i want a function that will find the filename of the includer file and 
>past it into a link.
>
> something like this would appear in the include file.
> $path = filename [this is a function or functions that find the filename of the file 
>accessing the include file, footer.txt]
> text text text <A href="http://validator.w3.org/check?uri=.$path>text</a>
>
> I want to tack the value of $path onto the end of the first part of the HREF.
>
> How can I do this?
>
> travis
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to