theNOTO New member Jun 24, 2006 303 2 0 OH Jan 31, 2007 #1 This is hopefully a simple question. I am trying to embed a variable in a tracking link like: <script src='http://www.mysite.com/ast.php?ch=%%KEYWORDS%%'></script> But the %%KEYWORDS%% variable is not resolving. What am I doing wrong?
This is hopefully a simple question. I am trying to embed a variable in a tracking link like: <script src='http://www.mysite.com/ast.php?ch=%%KEYWORDS%%'></script> But the %%KEYWORDS%% variable is not resolving. What am I doing wrong?
Brandon Administrator Staff member Jun 26, 2006 904 16 18 Jan 31, 2007 #2 Is the keyword actually getting populated, but the site's just not accepting it?
theNOTO New member Jun 24, 2006 303 2 0 OH Jan 31, 2007 #3 No, it is just showing up as %%KEYWORDS%% instead of the search term.
K kyleirwin New member Jun 25, 2006 1,818 32 0 Jan 31, 2007 #4 well where is the "%%KEYWORD%%" supposed to come from? if it's a variable in PHP you can just do... Code: <script src='http://www.mysite.com/ast.php?ch=<?= $kw_var_name ?>'></script> otherwise, you're going to have to be more specific as to where the keyword is stored or where it's coming from. Reactions: theNOTO
well where is the "%%KEYWORD%%" supposed to come from? if it's a variable in PHP you can just do... Code: <script src='http://www.mysite.com/ast.php?ch=<?= $kw_var_name ?>'></script> otherwise, you're going to have to be more specific as to where the keyword is stored or where it's coming from.
theNOTO New member Jun 24, 2006 303 2 0 OH Jan 31, 2007 #5 Sorry, it is a PHP variable. Your code worked like a charm - Thanks!