From what I have so far is that I am reading a text file into a textbox. Now I want to update/append new information to my file(the information may contain HTML/PHP code, text etc.) after I click the save button so the contents can be read on a separate page called "edit.php". Any suggestions? (My first time using PHP on a higher level)
The following is written in my editcontent1.php(I'm seperating each content block on my edit.php page into several editcontent(n).php files where n is = 1 to infinity)
Here is before the html tags:
<?php
if ( isset ($_POST ['content']) )
{
file_put_contents ('content1.txt', $_POST ['content'] );
}
?>
Here is before the html tags:
<form action = "edit.php" method="post">
<textarea name="content" cols="" rows="" wrap="virtual" class="textarea1">
<?php include 'content1.txt'; ?>
</textarea>
<br />
<input type="submit" value="Save">
</form>