link to an external url
-
Hello,
In a page of my site I have a form where I collect data, including the web page. After I gather this information I want to display them.
Lets say $webpage is the variable that store the web page I collected.<h4><?php echo __('Pagina web:);?>
<a href ="<?php $webpage ?>" target='_blank'><?php echo $webpage;?></h4>
If $webpage == mypage.com I want to open that page, but the code above try to open something like this localhost/mysite/mypage.com, which doesn’t exists. $webpage is somehow relative to mysite. What to do to fix this?
Thank you.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘link to an external url’ is closed to new replies.