Hello - I would greatly appreciate any advice on this. I am using RapidWeaver on my Mac to build landing pages, and I am using PHP to track conversions sent from Google AdWords to my landing page and then to Clickbank. At the top of my page, I have this php code to record the keyword coming in from Google AdWords: <?php $seedvar=$_GET['kw'];?> Code (markup): For example, the url coming in from google might be: http://www.mysite.com/mysite.php?kw=test Code (markup): The php code above captures "test" as the kw. From my landing page, I want to link to the Clickbank product and send that AdWords keyword with the user to track conversions, so I am using this link to get there: http://affiliate.publisher.hop.clickbank.net/?tid=<?php echo $seedvar;?> Code (markup): This link works when I test it. In the browser toolbar, I will see this as the url: http://affiliate.publisher.hop.clickbank.net/?tid=test Code (markup): However, when I attempt to use hyperlinking like below, it does not work. <a href=“http://affiliate.publisher.hop.clickbank.net/?tid=<?php echo $seedvar;?>â€>Test</a> Code (markup): The hyperlink appears as: test"<Test and the URL displayed in the browser toolbar is: http://affiliate.publisher.hop.clickbank.net/?tid= Code (markup): I am using RapidWeaver in Mac. The php script seems to be working. My problem seems to be occurring when trying to embed the php script in the hyperlink. It works fine when I use just a solid link without any hyperlinking. I have researched this thoroughly, and see that people are using this same code and having no problems. Any advice? Thank you so much.
I'm not sure but can you change “ to ": <a href="http://affiliate.publisher.hop.clickbank.net/?tid=<?php echo $seedvar;?>">Test</a> PHP: instead of <a href=“http://affiliate.publisher.hop.clickbank.net/?tid=<?php echo $seedvar;?>â€>Test</a> PHP:
I have tried this also, and it does not work. It displays the hyperlink correctly, but it does not convert the php script in the browser toolbar when I highlight the hyperlink.
can you post a few more lines of your code ( let's say from 5 lines before the link to 5 lines after)
I think that I may see what is going on. I am using RapidWeaver which allows me to write HTML code on a WYSIWYG template, but somehow, it is getting mangled in the source code after I write the hyperlinking code. Could this be the problem? and would there be any workaround? The first code string below is the one that is working properly, but it is not hyperlinked. The 2nd one is. from you!!</p><span style="font-size:13px;"><br /> <br /> <br /> <br /> <br /> http://affiliate.publisher.hop.clickbank.net/?tid=<?php echo $seedvar;?> <br /> <br /> <br /> <a href= "http://affiliate.publisher.hop.clickbank.net/?tid=%3C?php%20echo%20seedvar;?%3E"> Test</a> <br /></span><span style= "font-size:13px;"><br /></span><span style= "font-size:13px;"><br /> <br /> <br /> Best Wishes! Code (markup):
I found the problem...I can't write this code on the styled text template that I am using. I will have to use the HTML sheet in order to do it which is not as functional for me, but I will figure it out. I will probably just end up pasting the body from the source code from the styled text template to the HTML only template. Thanks for your help!!