Friday, May 21, 2010

How to echo text to a pop-up window using PHP - HELP!?

Hi, I'm trying to echo a message to a pop-up window to tell a user that they are already logged in, using PHP. I've tried a few methods, but I can't get anything to work, so hopefully you people out there are a lot more creative than I am! Thanks in advance!

How to echo text to a pop-up window using PHP - HELP!?
Just echo a javascript to open the window if the user is logged in:





%26lt;?php


if(user_logged_in)


{


echo "%26lt;script language="javascript"%26gt;";


echo "new = open('','','widht=300,height=80');


echo "new.document.write(' You are logged in');


echo "%26lt;/script%26gt;";


}


?%26gt;

birthday cards

No comments:

Post a Comment