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? Link to comment https://forums.phpfreaks.com/topic/208907-need-help-with-body-onunload/ 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? Link to comment https://forums.phpfreaks.com/topic/208907-need-help-with-body-onunload/#findComment-1091213 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; ?>')"> Link to comment https://forums.phpfreaks.com/topic/208907-need-help-with-body-onunload/#findComment-1091310 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.