Pass Query String from Parent to iFrame in ISC Page


We have an iframe page for package tracking, we want to pre-filled tracking number in the tracking page form and send the direct link to customers


With this mod, we can send this URL to customer

The query string will pass to the iframe src

<iframe src="" width="100%" height="850" frameborder="0"></iframe>

Finally the tracking page script /track/index.php will pre-fill the tracking number in the tracking widget

In /includes/classes/


$GLOBALS['PageContent'] = $this->_pagecontent;


if(isset($_GET['track']) && ctype_alnum($_GET['track'])){
	$this->_pagecontent = str_replace("", "".$_GET['track'], $this->_pagecontent);
$GLOBALS['PageContent'] = $this->_pagecontent;

Leave a Reply

Your email address will not be published. Required fields are marked *