hi all,
i have a template bulider in a php page in which the user enters header , body , footer. now the user can enter multiple dates and time on that format. lets take an example:

if ($Template_ID !='') {
$sql="select * from Templates_T where Template_ID='$Template_ID'";
$rs=$db->getRow($sql,DB_FETCHMODE_ASSOC);
extract($rs);
}
$Entire_Content = $rs['header_txt'].'<br>'.$rs['content_txt'].'<br>'.$rs['footer_txt'].'<br>';
print_r($Entire_Content);
the out put is :
//////////////////////////////////////////////////////////////////////////

TEMPLATE OF ANNUAL GENERAL MEETING // this is the header
This is to inform you that the Annual General Meeting for the year 2007-2008 has been scheduled on ::date:: and at ::time:: . // this is the content
All are requested to be present at ::date:: and on ::time:: // this is the footer

///////////////////////////////////////////////////////////////////////////
now what i want is that for every instance of ::date:: and ::time:: there should be an array of textboxes on that page which will replace ::date:: with the date the user enters and the ::time:: will be replaced with the users time.

i tried to do the date it in the following way:
<?$bodyarr = explode("::date::",$Entire_Content);?>

<? foreach($bodyarr as $key) { ?>
<? print ($key."<input type=text name =date[]>");?>
<? } ?>

but i am confused to do it along with time??? how will i do it for both date and time simultaneously. or is there any other way to do the same

Million Thanks in advance