View Full Version : Resolved Popup upon if
newbtophp
10-30-2009, 04:48 AM
I have the following code:
if ($variable == "^") $_SESSION['zlib']=true;
}
//i want to open a popup here automatically
}
How would i open a popup automatically between the } ~ {?
Thanks
What do you want to popup? A new window? A javascript alert?
newbtophp
10-30-2009, 04:52 AM
Nevermind, i managed to figure it out!
:)
djr33
10-30-2009, 05:37 AM
The structure of that code is not normal, or at least it is not a complete unit in itself.
//ADDED:
{{//open two layers of bracket
//your code:
if ($variable == "^") $_SESSION['zlib']=true; //single-line-only if-statement
} //CLOSE bracket
//i want to open a popup here automatically
//Why here? What is this region defined as?
//Do you want this as part of the if, or just inside the first
//layer of brackets, but not inside the second?
} //close outer layer of brackets
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.