In my php code I have a call to Javascript. Everything works fine, untill I try to replace one static var in JS with the one from PHP
This the actual code snippet:
$htmlsrc .= $1term;
$htmlsrc .= "<table border=0 cellpadding=0 cellspacing=10><tr><td><script language='javascript'>document.write('<sc' + 'ript language=javascript src=\"index.php?term=1TERM_here&offset=0\">')\ndocument.write('</sc' + 'ript>')\n</script></td></tr></table>";
$htmlsrc .= "</td></tr></table>";
I need $1term to go instead of 1TERM_here
I've tried unsuccessfully. Don't want to put my code here. Do npt want to drive you in a wrong direction.
Any takers?