hi i have two files
File A calls File B passing through the image parameter
onclick="window.open('viewimage.php?image=G6'
File B displays the image
<IMG height=172 src=<?=IMGS?>/<?php echo $_GET['image']; ?>.jpg >
thats working fine so MY PROBLEM is:
in file B i have included a file which contains the image title constants
<? include_once ("english.inc") ?>
what i want to do is take the image parameter and from that select the right constant which is named the same as the image eg define ('G6',"xxxxxxxxxxxxxxxxxxxxx");
how do i do that ? because all i can do is echo G6??