writing form data into text file

From: Date: Sat, 03 Aug 2002 01:13:32 +0000
Subject: writing form data into text file
Groups: php.windows 
Request: Send a blank email to php-windows+get-15096@lists.php.net to get a copy of this message
hello, i want to write form data into a txt file by using the fwrite() function... but i cant write the form data into the txt file, only strings that were typed in by myself directly at the php script.. here´s the script that i am using: <html> <head> <title>Sign</title> </head> <body bgcolor="#FFFFFF"> <form name =gb method=post action=zeigen.php> Your Name: <input type=text name=name size=24><br> <input type=submit> </form> <?php $file = "guestbook.txt"; $fp = fopen("$file","a+"); fputs($fp, "$name"); fclose($fp); ?> </body> </html> the function readfile() works perfectly, when i write something into the txt file by myself...but when the form data should written into the txt file it doesn´t work... can someone tell me why??? i am using the following configuration: apache webserver 1.3.26 (for windows) php 4.2.1 windows 2000 (not with NTFS, just FAT) thx for your help andreas

« previous php.windows (#15096) next »