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 name="thought" action="http://www.yourwebsite.com/cgi-bin/perlscripts/textwriter.pl" 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 PERLSCRIPTS folder.

Want ad-free tutorials like these for classroom use? Get them at Visilearn.com.