hi guys any idea how i can insert a whole html code in $content please ? basically i want to paste my html template after $content ='whole html code goes here' any ideas ? thanks in advance
<?
if(isset($_POST['save']))
{
$pagename = $_POST['pagename'];
$content = 'test';
$filename = "cms/pages/$pagename.php";
$filehandle = fopen($filename, 'w') or die("can't open file");
fwrite($filehandle, $content);
fclose($filehandle);
}
?>