I've got php scrip (google charts API) for a QR code generator that works fine when I preview the page, but when I publish it, the code borks my page the div on the right at the top of the page in the iFrame should be an empty area for the QR code to display, but it displays part of my site, and the script doesn't run when published, but OK in preview - my head is beyond scratching on this, any help would be much appreciated - the code from the 'grab' file is below:
<?php
//1
if(isset($_REQUEST['content'])){
//2
$size = $_REQUEST['size'];
$content = $_REQUEST['content'];
$correction = strtoupper($_REQUEST['correction']);
$encoding = $_REQUEST['encoding'];
//3
$rootUrl = "https://chart.googleapis.com/chart?cht=qr&chs=$size&chl=$content&choe=$encoding&chld=$correction";
//4
echo '<img src="'.$rootUrl.'">';
}
?>