SunTzu Posted November 25, 2006 Share Posted November 25, 2006 Hi to all,I need to pass a php variable ($somevariable) to a pop-up window.I am using JavaScript to open the window but i do not know how to get the respective variable from the opener.Any suggestions?Thank you. Link to comment Share on other sites More sharing options...
ATM Posted November 25, 2006 Share Posted November 25, 2006 Could you put it in the url?for example have an address simular to this in your javascript pop-up window code as index.php?variable=$anyvariableand on the pop-up window have <?php $anyvariable=$_GET["variable"]; ?>or maybe something simular Link to comment Share on other sites More sharing options...
SunTzu Posted November 26, 2006 Author Share Posted November 26, 2006 Could you put it in the url?for example have an address simular to this in your javascript pop-up window code as index.php?variable=$anyvariableand on the pop-up window have <?php $anyvariable=$_GET["variable"]; ?>or maybe something simularGreat !!!Thank you very much 'Against the Masses' You saved me from staying awake one more night Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now