PHP Code:
<?php
echo '
<form method="post" enctype="text/plain">
<br />
Content:
<br />
<textarea name="content"></textarea>
<br /><br />
<input type="submit" value="Submit" name="submit">
</form>
';
if(!$_POST['content']) {
echo 'Content is a required field.';
} else {
echo 'Content was successfully edited.';
$content = htmlspecialchars($_POST['content']);
}
?>
Use javascript or something to import the variables.