Forum Moderators: coopster
<a href="<?php echo $info['link1'];?>"><?php echo $info['link1'];?></a>
Looking at the example above, the written portion <?php echo $agentinfo['link1'];?> correctly displays Google's URL.
However, the link portion <a href="<?php echo $info['link1'];?>"> incorrectly adds Google's URL to the URL of my webpage.
If I do this: <a href=\"<?php echo $agentinfo['link1'];?>\"><?php echo $agentinfo['link1'];?></a>
Google's URL is still added to the URL of my webpage with %22 written before and after Google's URL.
If I do this: <a href='<?php echo $agentinfo['link1'];?>'><?php echo $agentinfo['link1'];?></a>
Google's URL is added to the URL of my webpage.
How do I write this simple code to display a clean link that is not added to the URL of the page it appears on?