As my first dabble in php, I have taken on some legacy code and am in need of help!
The base page is php, called absence_map.php and contains:
<?php
/
(C) UK 2004 Carval Computing Ltd
Author Richard Quadling
/
$theme = $HTTP_GET_VARS["theme"];
error_reporting(E_ALL);
set_time_limit(0);
require_once('absence_map.inc');
$HR = new AbsenceMap_Kalendar_TreeData();
echo $HR->Render();
?>
The absence_map.inc contains all the code to create the map. In the centre of this inc file is some HTML code wrapped in <<< END_CODE END_CODE; tags. This php calendar is being incorporated in an asp application and needs to get a string variable from the querystring. As you can see, I've read in the info from the querystring into the variable $theme but when I try to get $theme to echo in the wrapped HTML in the inc file I get an undefined variable notice.
A base summary of the contents of absence_map.inc:
<?php
$theme = $HTTP_GET_VARS["theme"];
code....
database connection ...
querying ...
. <<< END_CODE
HTML Code - need to be able to use $theme variable here to fetch correct image path... have tried ...
<img src=../<?php echo $theme?>/bartop.gif> but doesn't work
then there is more php ...
END_CODE;
bit more php
?>
Sorry this is such a long post - all help and suggestions very welcome, thanks 🙂