Perl Basics In Pictures
Basics
Variables
Numbers
Subroutines
Logic & Loops
Files
Append to files
Create a Web page with this code:
<html>
<head>
<title>Append to files</title>
</head>
<body>
<h2>Add to Today's Thought</h2>
<form name="thought" action="http://www.yourwebsite.com/cgi-bin/perlscripts/textappender.pl" method="post">
<input type="hidden" name="filename" value="textthought.txt">
<textarea name="comments" rows="3" cols="50" wrap></textarea>
<input type="submit" value="Update Thought" name="submit">
</form>
</body>
</html>
Save the page as
textappender.html
in the
PERLSCRIPTS
folder, then upload it to the home directory in your Web site.
<< BACK
NEXT >>