A very easy way to append string to a file using simple php script <?php $fn = “file.txt”; $file = fopen($fn, “a+”); $space.= “\n”; if($_POST['addition']) fwrite($file, $_POST['addition']); fwrite ($file, $space); fclose($file); ?> <form action=”<?=$PHP_SELF?>” method=”post”> <input type=”text” name=”addition”/><br/> <input type=”submit”/> </form>
You will also be interested in ,
- Simple Javascript Slideshow
- Arrays In PHP
- Recuva best file recovery software
- JAVA Simple Tutorial Part-I
- Displaying or changing images each day
- .htaccess some facts and rules
- Simple file upload script using php
- PHP E-mail with attachment
- Get IP address using gethostbyname() function
- Caching of web page using php

Testing the form.