For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > September 2004 > inserting a link









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author inserting a link
Mr Nobody

2004-09-28, 4:00 pm

Hi all,

I am having a problem inserting a hyperlink to a document into a php
function.

I have tried quite a few ways but can't seem to do it.

Has anybody got any pointers that may help me?

Thanks in advance.

-Mike


Ken Robinson

2004-09-28, 4:00 pm


Mr Nobody wrote:
> Hi all,
>
> I am having a problem inserting a hyperlink to a document into a php
> function.
>
> I have tried quite a few ways but can't seem to do it.
>
> Has anybody got any pointers that may help me?


What have you tried? How did it fail? We're not mind readers here. Post
some code, then we can try to help you.

Ken

Matthias Esken

2004-09-28, 9:26 pm

Mr Nobody schrieb:

> I am having a problem inserting a hyperlink to a document into a php
> function.


??? It's not clear what you want to do.

Do you want to output a link?
echo "<a href='http://www.example.com/docum.ent'>Link</a>";

Or do you want to redirect to an other page?
header('Location: http://www.example.com/docum.ent');
exit;

Regards,
Matthias
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com