our approach
|
contact us
PHP Basics In Pictures
Basics
Variables
Numbers
User functions
Logic & Loops
Files
Create a text file
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>
Save the page as
textwriter.html
in the
PHPSCRIPTS
folder.
<< BACK
NEXT >>