View Single Post
  #3 (permalink)  
Old 09-25-04, 08:36 PM
mikaelf mikaelf is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: php[dot]net
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
you can simply use fopen modifier 'a' (append)
PHP Code:

$fp=fopen('usertxt.txt','a');

fwrite($fp,addslashes($usertxt));
fclose($fp);
header('location: index.html');
exit(); 
__________________
Useful PHP links:
bugs.php.net - for reporting PHP bugs
pear.php.net - PHP extension and application repository
pecl.php.net - get non standard PHP modules, submit yours
www.phpclasses.org - PHP classes repository
Reply With Quote