Jump to content

[SOLVED] PHP and JS not playing nicely


Grodo

Recommended Posts

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

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);
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.