hmmm
ok I have form2.php sending the input to temp.php. temp.php has the code we have been working on, and I have this code in temp.php:
$template=fopen("template.php","r");
$template=fread($template,102400);
$template=str_replace("[[ORGANIZATION]]",strip_tags($title),$template);
if (file_exists("../".$page_name.".htm")) {
die("There is already a company with that page name");
} else {
if ($new_file=fopen("../".$page_name.".htm","w")) {
fwrite($new_file,$template);
fclose($new_file);
} else {
die("There was an error in saving the company");
}
}
then in template.php above the title I have:
<? $title = "ORGANIZATION, Illinois Valley SECTION - IVCentral"; ?>
and for the title I have <? echo "$title"; ?>
So if it is working, the title should say:
[ORGANIZATION], Illinois Valley SECTION - IVCentral
but the brackets arent being put around ORGANIZATION