Hola:
Bueno, entonces habrá que cambiar el chip...
(al menos vas aprendiendo otro poco javascript
Entonces en vez de escribir código, tendrás que abrir la página con un formulario (o simularlo con url)
<form action="destino.php" target="popup" method="get" onsubmit="window.open('', 'popup', '')" >
<input type="hidden" name="texto" value="esto es un gato" />
<input type="hidden" name="foto" value="gato.jpg" />
<input type="submit" value="Gato" style="border: 0; background-color: transparent; cursor: pointer" />
</form>
Luego recibes los datos por get (podría ser post):
<?php
//tus declaraciones php
?>
...
<img src="<?php echo $_GET['foto']; ?>" />
...
<span><?php echo $_GET['texto']; ?></span>
... y lo mismo con un enlace:
<a href="destino.php?foto=gato.jpg&texto=esto%20e s%20un%20gato" target="popup" onclick="window.open('', 'popup', '')">Gato </a>
Más información en este artículo de maestrosdelweb:
Formularios y enlaces dirigidos a ventanas
Saludos