Hi,
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......................
thanx, crue
Don't know if the onClick script is ok, but to print the variable $temp try this:
<input type='submit' value='view' OnClick="window.open('<?php echo $temp; ?>','myWindow')">
I can't believe I missed that.......
thank's jernhenrik, it works fine now