Click here to Skip to main content
15,908,437 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my current line of code.
<p> Linkedin: <?= $user_info['portfolio_website'] ?></p>

Now it will just output the url as text.
How can I make this text clickable?

What I have tried:

I tried to put a href for it but then it turned transparent
Updated 14-Jun-16 23:55pm

1 solution

Share this answer
Member 12584898 15-Jun-16 6:07am    
The ['portfolio_website'] is extracted from the database and is different per user.
for example: one is
second is:
This are the urls displayed on the view.
These urls should be clickable
glen205 15-Jun-16 10:32am    
I understand that the links are different per user.

I put "xxxxx" and "yyyyy" in my example to illustrate where you would put *your* active content to render the url / visible text (the PHP code <?= $user_info['portfolio_website'] ?>)

In effect, my solution is just "what's the right HTML for a link" - I was just saying that the <p> tag isn't a clickable link, the <a> tag is. I assumed you already were okay with what PHP to use to put the actual text you wanted to appear.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900