PHP and javascript?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rolf
Forum Newbie
Posts: 3
Joined: Mon Apr 28, 2003 6:23 am

PHP and javascript?

Post 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?
User avatar
Fredix
Forum Contributor
Posts: 101
Joined: Fri Jul 18, 2003 2:16 pm
Location: Wehr (Eifel) Germany
Contact:

Post by Fredix »

why don't you put that php part into the body?
Post Reply