I have a button called 'view' and as I click it, I want to dynamically generate a pop-up window whose content from some php var........
I tried: (inside php file)
<?php
$temp = "pic.jpg";
?>
<input type='submit' value='view' OnClick="window.open('<?php $temp ?>','myWindow')">
It failed......................