Jump to content

cr80expert5

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Everything posted by cr80expert5

  1. 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>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.