Forum Moderators: coopster
i am trying to spruce up my affiliate site using CJ Smartzones, but I am having issues getting the Javascript to do what I want.
In short, I am able to pass a user name properly to the javascript, and am also able to query my database fine.
What I am trying to do is something like the following:
<a href='validatelogin.php'><SCRIPT type="text/javascript" LANGUAGE="javascript" src="http://www.example.com/1g-e36f?SID=login"> </SCRIPT>
So, to explain, the script serves the images I want to display. If a user clicks on the image presented by the script, I want to check to ensure they have logged-in, and 'validatelogin.php' does that.
But for some reason, my <a href> is ignored, and a click sends the person to the merchant.
Maybe I can't do such a thing, so I ask the group.
Thanks,
[edited by: dreamcatcher at 7:43 am (utc) on April 18, 2008]
[edit reason] Use example.com, thanks. [/edit]