ok, sorry if that title didnt make sense, but heres what i am trying to do...
I have a form in lets say Dir.01 which is above Dir.00.
This form has a field BandName which is then saved and creates a file on Dir.00.
This is the code:
$ourHFileName = "../Artist-".$BandName.".php";
$ourHFileHandle = fopen($ourHFileName, 'w') or die("can't open file");
if (!chmod($ourFileName,0777))
die ("change permission to 777 failed.");
$Hcontent= '<?php include ("PAGESTART.php"); ?>
<?php include ("content/Artist-".$BandName.".php"); ?>
<?php include ("PAGEEND.php"); ?>';
fwrite($ourHFileHandle, $Hcontent);
fclose($ourHFileHandle);
My problem is, when the file is created with the Hcontent bit, it doesnt change the $BandName to what it was in the form...
Have I just used the wrong ' or " ? any advice would be helpful.
Thanks