karimali831 Posted July 26, 2010 Share Posted July 26, 2010 Hi! I can't get a variable to work with this onunload: <body onunload="opener.location=('admincenter.php?site=cups&action=baum&ID='.$_GET['ID'].'')"> It won't load if I use '.$_GET['ID'].' anything else I can do? Quote Link to comment Share on other sites More sharing options...
trq Posted July 26, 2010 Share Posted July 26, 2010 Wer need to see more code, are you within <?php ?> tags? Quote Link to comment Share on other sites More sharing options...
karimali831 Posted July 26, 2010 Author Share Posted July 26, 2010 I had to use php tags to get it working, thank you! <?php $redID = $_GET['cupID']; ?> <body onunload="opener.location=('admincenter.php?site=cups&action=baum&ID=<?php echo $redID; ?>')"> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.