rendered paste body <p>
<?php
$continue = isset( $_GET['continue'] ) ? $_POST['continue'] == 'true' : false;
if ($continue) { ?>
<form action="editbox2.php?continue=true" method="post">
<?php
$filename = "box2.inc";
$text = read_file($filename);
?>
<textarea id="editor" name="editor"><?php echo $text; ?></textarea>
<input type="submit" value="Update" />
<input type="button" value="Cancel" onclick="document.location='index.php';" />
</form>
<?php } else {
//$filename = "box2.inc";
//$cont = stripslashes($_POST['editor']);
//$r = write_file($filename, $cont);
//echo "<script type=\"text/javascript\">document.location='index.php';</script>";
echo "step 2";
}
?>
</p>