Codice PHP:
<center><form name="admin_edit_form_1" id="admin_edit_form_1" method="post">

    <?php
        
        $pag 
$_GET["pag"];
    
        
$content_file "contents/files/" $pag ".txt";
        
        if (!isset(
$_POST["editable"])) {
        
        
$read_queque file_get_contents ($content_file);
        
        include 
"admin-editor-1.js";
        
        echo 
"<textarea name='editable' id='editable'>" $read_queque "</textarea>";
        
        }
        
        else {
        
        
$to_write $_POST["editable"];
        
       
$open_queque=fopen ($content_file"w+");
        
        
fwrite ($open_queque$to_write);
        
        
fclose ($open_queque);

        echo 
$to_write;
                
        }
    
    
?>
    
<input type="submit" name="admin_submit_1" id="admin_submit_1" value="Invia">

</form></center>
perchè assegni le variabili alla scrittura e chiusura di un file?