Jump to content

Archived

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

hungryfrank

linking to outside of osc simple question lol

Recommended Posts

It depends on how you are including the code - whether it is in a block of php or not. The link to an external page using no php would be

<a href="www.site.com" target="_blank">Other site</a>

Share this post


Link to post
Share on other sites

In that case you need to use php, like this:

<a href="<?php echo $url; ?>" target="_blank">Other site</a>

The above assumes the line is not within a block of php. If it is, it would be

echo '<a href="' . $url . '" target="_blank">Other site</a>';

Share this post


Link to post
Share on other sites

×