if i have a simple html form like the one below....
<form action="process.php" method=post>
<textarea name="html"></textarea>
</form>
assuming that the textarea with the name "html" contains html code. could someone pleese explain to me how i would edit the code below (which would be in the "process.php") in order for it to work because it doesnt seem to be working....
$filename = "new.html";
$fp = fopen($filename,"w");
fwrite($fp,$_POST['html']);
fclose($fp);
what i actually WANT the script to do is create a html file contain whatever the varible "html" holds