Hi can someone see a problem with in including this onclick function within this php line. The idea is to allow multiple users to interact with my site and display my results on their site.
i.e.
The user places this code on their regular html pages
This then fetches the correct page and activates the code below.
///////// regular php code here then outside the php code the document write function sends back the result /////////
document.write('<?PHP echo "<a href=$Bannerurl target=_top ONCLICK=\"window.location='/Clickengine.php?
bannerowner=$Bannerowner&day=$Day&month=$Month&year=$Year&time=$Time&bannername=$Bannername&Bannerid=$Bannerid'\"
><img src=$Imageurl border=0 width=125 height=125></a>"; ?>');
The problem is that the document.write wont echo the onclick part. If I remove it the image displays fine, if it is left in the document.write doesnt work.
Any ideas how to correctly include the onclick function above
The problem is