PHP Basics In Pictures
Create a text file
  1. Create a Web page with this code:

    <html>
    <head>
    <title>Create Text File</title>
    </head>

    <body>

    <h2>Today's Thought</h2>

    <form action="http://www.yourwebsite.com/phpscripts/textwriter.php" method="post">

    <input type="hidden" name="filename" value="textthought.txt">

    <textarea name="comments" rows="3" cols="50" wrap></textarea>

    <input type="submit" value="Create Thought" name="submit">

    </form>

    </body>
    </html>
  2. Save the page as textwriter.html in the PHPSCRIPTS folder.