How can I Pass Tracking IDs of my Source Traffic to Inner Links

This is what you have in your code. See if you can spot the different between this code and the code that @m_hutley posted, and that I posted just above:

<a href="gotothissite.com?<?php echo isset( $_GET[" tid']="" )
="" ?="" "tid=".$_GET['tid'] : " ";="">&#8216;&gt;I Cant Write HTML</a>

Good to hear you’ll get it sorted. Not everyone has time to dig further into this stuff. But you can just copy/paste the text from any of the posts here directly into your editor, so I’m not sure where you’ve got the extra quotes and the weird backward single quote from.

I have copied and pasted the code which you and @m_hutley sent me in the editor.

What editor do you use? Because this code is what is appearing in your page:

<a href="gotothissite.com?<?php echo isset( $_GET[" tid']="" )
="" ?="" "tid=".$_GET['tid'] : " ";="">&#8216;&gt;I Cant Write HTML</a>

rather than

<a href='gotothissite.com?<?php echo isset( $_GET['tid'] ) ?
 "tid=".$_GET['tid'] : ""; ?>'>I Cant Write HTML</a>

Note that I am getting this code by opening your site, clicking “view source”, and there it is. In itself, that means that the PHP code is not being executed, so even when you have the syntax correct, it’s not going to do anything. What is the name of the file that contains the HTML and PHP code? As I asked in post #17, it does have a .php extension, doesn’t it? If it doesn’t, the server won’t know to execute the PHP code in it.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.