I know this must be very very easy, but I am having problems with the following:
I want my webpage to display a list of links to a website on another server.
The links url should be something like: http://www.expasy.uniprot.org/P00937
I have the last part of the links (P00937)is stored in an array.
If I make

$id = "P00937";
$link = "<a href='http://www.expasy.uniprot.org/".$id."'>link</a>";
echo $link;

When click on the link my browser says it can't find the url on this server. But of course it's not on this server... I thought urls that begin with http:// were always supposed to be from external servers...

However with this:

$link = "<a href='http://www.expasy.uniprot.org/P00937'>link</a>";
echo $link;

it goes to the right website.

What am I doing wrong?
I appreciate all help you can give me.

katya :bemused:

    check the url, because the page isn't there.....

      Write a Reply...