Here are the facts on this project..
I have links on my pages in this format..
[login to view URL]
At the location "abcdefg" presently I have an [login to view URL] file.
What I want is this..
I want the directory name of "abcdefg" to be included in another link that is actually my affiliate link to things in [login to view URL] like this...
[login to view URL]
But, the user can only see the link "[login to view URL]"
I can place all of the directories in a text/word/excel file, or we can create a Mysql database.
Your choice.
I am leery of Javascript, but if a user doesn't have javascript turned on they wouldn't be able to use the website anyway, so Javascript would be OK.
I prefer to use PHP for simplicity if possible.
BTW. The [login to view URL] files can easily be renamed to [login to view URL] if necessary.