Making a document editor [php] troubles

Ok here is what i trying to do:

  1. User enters the document name and extenstion he/she wants to edit,
  2. PHP takes it via variables to edit.php,
  3. user clicks submit on edit.php and is taken to done.php with confirmation and echo of new content.

how im doing this is file_get_content.
Here i the code for edit.php and done.php:

EDIT.php


<?php
//define name:
$name = $_POST['name'];
//define ext:
$ext = $_POST['ext'];

/*------------------------------------------------------*/
//Grab the file:
$content = file_get_contents($name . $ext)
?>

<form name="form1" method="post" action="done.php">
  <p>
    <input name="hiddenField" type="hidden" id="hiddenField" value="<?php echo $name.$ext; ?>">
  </p>
  <p>
    <label>
    <textarea name="edited" id="edited" cols="80" rows="25"><?php echo $content; ?></textarea>
    </label>
  </p>
  <p>
    <label>
    <input type="submit" name="button" id="button" value="Edit : <?php echo $name.$ext; ?>">
    </label>
  </p>
</form>

DONE.php

 <?php

//defines
$text = $_POST['edited'];

echo $text;

?>

I used echo before I did file_put_contents so i know it will work.

But it doesn’t. All I get is a blank page.

Whats happening?!