Jump to content

[SOLVED] Super Noob Question


savagenoob

Recommended Posts

K, I'm actually embarrassed to present this, but is bugging me. I have a companies web address stored in a table, and when I display it I want it to be a link so the user can click and go right to the website. The problem is when I do this it appends the web address onto their current path on my site. Here is the code

<a href="<?php echo $companyaddress; ?>"><?php echo $companyaddress; ?></a>

and it displays as www.currentpathonmysite.com/www.companyaddress.com.

I know someone can help with this quickly as most are not so nubbish

Link to comment
https://forums.phpfreaks.com/topic/158869-solved-super-noob-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.