Hello,
This is a re-post of a question I posted today in the JavaScript forum. I was told that what I am looking for needs to be run serverside, so PHP is the answer. I have never used PHP before, but am hoping that my situation will be easy to solve.
I searched this forum and found several posts that are similar to mine ([B][I]Unique User URLs, Major help needed please, form-website database, $_GET and $variables
Here is what I am trying to do. I have a website created in FrontPage 2002. The website is running on an Apache server and I have access to a MySQL database. I want to have code running on a page (called pagename below) that displays a “semi-custom” hyperlink for each visitor. The hyperlink will take visitors to a .NET application that I have running on a different server.
Ideally, when someone first opens “pagename” the link would be displayed on the page in a place I specify. If need be, I could have a button that the user has to click to generate the link.
This is what I mean by “semi-custom” link. The link will look like this:
“[B][COLOR=Blue]XXXXX
The XXXXX is the only custom part. The text before the XXXXX and the &m=0 is the same for everyone. The XXXXX is a unique userid that my .NET application will recognize. The userid is typically alphanumeric. However, I thought I could simplify this task if I made it a simple integer that starts at the number 1 and increases by one for each new visitor. This way I am hoping that PHP can generate an infinite number of links.
#1 sees “
#2 sees “
#3 sees “
Can anyone tell me what the PHP code would be to display these links? Also, I am hoping that once I have the code all I need to do is insert it into the body of my webpage. If that is incorrect, please advise.
Thank you in advance for your help! ?