Okay let me see if I can explain what is happening here.
I have a form section that I store in a seperate file. I call the form and assign it to a variable $formblock.
<?php
// get form block
$filename = "/var/www/prweb/_inc/registerform.php";
$fd = fopen ($filename, "r");
$formblock = fread ($fd, filesize ($filename));
fclose ($fd);
?>
Later in the page I issue an echo command to display the contents of $formblock.
<?php echo $formblock; ?>
It works fine EXCEPT for the following:
I have variables within the $formblock that I want replaced with the values of the variables. For example, the form contains
. . . type=text value = "$firstname" . . .
Now here is where I am confused. This works if I embed the $formblock directly ( $formblock = ". . . type=text value = \"$firstname\" . . .")
into the program rather than pulling the contents out of the text file.
What gives?
David