Hello,
I am having an issue placing some javascript into a .php header file. I have tried to incorportate it into the scripting, but all I get is php errors.
I want to place a pop-up window script on a log-out link so that members who are leaving the site are asked if thats what they want to...
This is part of the file where I added the code.
include('php/functions.php');
if (!isset($_SESSION['logged_in'])) $_SESSION['logged_in'] = False;
if ($_SESSION['logged_in']) {
$status = $_SESSION['first_name'].' '.$_SESSION['last_name'].' - Logged In';
} else $status = 'You Are Not...
I did it two different ways. One I changed the outside ' to be " and then did visa versa. One time it gave the same error and the next time it froze and the whole site wouldn't come up.
States I am getting a parse error on line 28
Line 28 reads
print ' agree=window.open('prelogout.html','prelogout','height=400,width=500,screenX=400,screenY=250,top=250,left=400');';
Hello,
I am having an issue placing some javascript into a .php header file. I have tried to incorportate it into the scripting, but all I get is php errors.
I want to place a pop-up window script on a log-out link so that members who are leaving the site are asked if thats what they want to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.