Page 1 of 1

PHP and javascript?

Posted: Tue Jul 22, 2003 3:01 am
by rolf
Hi,
I'm using PHP/MySQL user authenication to go to a secure page. The problem is that the secure page the user is taken to, is to pop up in a new window. Can i use javascript to create this new window? What i tried so far, the new window with the secure page in it, just opens, no matter if the user authentication succeeds or fails. I want it to open only if the authentication succeeds.
This is the code leading to the secure mail.php page:
$FF_redirectLoginSuccess="email.php";

I tried to replace "mail.php" with the javascript "GP_AdvOpenWindow('email. php','remotemail','fullscreen=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable
=no,channelmode=no,directories=no',610,508,'center','ignoreLink','alwaysOnTop',0,'',0,1,5,'');return
document.MM_returnValue", but this fails because the PHP is not in the body.

How can i solve this?

Posted: Tue Jul 22, 2003 4:33 am
by Fredix
why don't you put that php part into the body?