Further explanation.... there is no interaction . The template htt is written in java and it generates as many HTML pages as I have images..... Each page has a unique name (the image name ext html). There is no Databse interaction so far....strictly HTML I can include a php script which will then be part of each page. <HTML........ <Title .............. <Head.................. Contents.......................... Image.................... Text info ..................... The script goes here............ <?php $title="Title" from top of page /* This script should retrive the "<Title>Image_name</title> to a variable $title and post it to another script with a submit button, for further processing" The $title variable already exists in java but I don't know how to have php see it . ?> </HTML>