# PHP Tags, How to

**URL:** <https://forum.kirupa.com/t/php-tags-how-to/70392>\
**Category:** programming\
**Created:** [November 13, 2004, 2:52pm UTC](https://forum.kirupa.com/t/php-tags-how-to/70392 "2004-11-13T14:52:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnoldot](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@arnoldot](https://forum.kirupa.com/u/arnoldot)\
**Post date:** [November 13, 2004, 2:52pm UTC](https://forum.kirupa.com/t/php-tags-how-to/70392/1 "2004-11-13T14:52:08Z")

</div>

[font=verdana, arial, helvetica][size=2]Hello there,

First of all, this is my first post here… i was told by everyone that you guys do know php from the first ‘p’ to the second one!

My Problem…

I got this script, like a business directory, that is giving me a hard time displaying url tags…

My regular listings are as follow

NAME:Company1  
ADDRESS:Address1  
PHONE:Phone1  
URL:[http://www.url1.com](http://www.url1.com)

and that shows perfectly fine… but when i try to list affiliate liks as something else (instead of the huge link) it prints an non working link… [/size][/font]  
[font=verdana, arial, helvetica][size=2]  
**if enter the following for the url**  
\<a href=“[http://www.affiliatelinknonexistent.com/id.583758872a.ih=0](http://www.affiliatelinknonexistent.com/id.583758872a.ih=0)”\>Affiliates Name\</a\>

**the outcome is**  
\<a\>Affiliates Name\</a\> (yes, It shows the tags)  
which is displayed as a link but it does not take you to the respective link

I know the example shown above is html tags, not php… but i have no idea on how to use php tags

now, the problem gets even worst

i would like to be able to use TAGS on my AFFILIATE links only, i dont want to change the other +500 links

Is thre a way i can enter a Keyword on my affiliates url and string the real url using the print command?

thanks

PS. The script will show everything in URL as a link, so, even if i was to enter just “link” it will be a working link to an unexistent url, which gives you an error

(i added the PS so you know how the script handles the field, it may help,. i think)[/size][/font]
