Grodo Posted August 1, 2007 Share Posted August 1, 2007 Hello Again! I guess the PHP and Javascript are not playing nicely =( I recieve the error Parse error: parse error, unexpected T_ECHO in phpharvest.php on line 205 for some reason it does not like the echo. Any help will be greatly appreciated! Thank You Grodo $jpop = "<script language=javascript type=text/javascript> function successlaunch(url) { newwindow=window.open(url,name,height=800,width=500,toolbar=no,titlebar=no,statusbar=no,locationbar=no,menubar=no,scrollbars=1); if (window.focus) {newwindow.focus()} javascript:successlaunch(passed.html); </script>" echo($jpop); Link to comment https://forums.phpfreaks.com/topic/62922-solved-php-and-js-not-playing-nicely/ Share on other sites More sharing options...
DeepakJ Posted August 1, 2007 Share Posted August 1, 2007 You forgot the semicolon before the echo Link to comment https://forums.phpfreaks.com/topic/62922-solved-php-and-js-not-playing-nicely/#findComment-313264 Share on other sites More sharing options...
Crew-Portal Posted August 1, 2007 Share Posted August 1, 2007 Grodo Is right try: <?php $jpop = "<script language=javascript type=text/javascript> function successlaunch(url) { newwindow=window.open(url,name,height=800,width=500,toolbar=no,titlebar=no,statusbar=no,locationbar=no,menubar=no,scrollbars=1); if (window.focus) {newwindow.focus()} javascript:successlaunch(passed.html); </script>"; echo($jpop); ?> Link to comment https://forums.phpfreaks.com/topic/62922-solved-php-and-js-not-playing-nicely/#findComment-313292 Share on other sites More sharing options...
Grodo Posted August 1, 2007 Author Share Posted August 1, 2007 Now all I got is an error in my Java code hahahha but this not what this section is for so Topic Solved! Thank YOu so much those ; are tricky they are like ninjas with their stealth secrets! Link to comment https://forums.phpfreaks.com/topic/62922-solved-php-and-js-not-playing-nicely/#findComment-313300 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.