hi, iīve already replaced the line and iīve changed the register_globals, but it still donīt work....
you have another idea?? or can you test the script on your computer??? thx andreas "R'Twick Niceorgaw" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 000301c23a8b$d423db20$8600a8c0@sunu">news:000301c23a8b$d423db20$8600a8c0@sunu... Replace this line fputs($fp, "$name"); With fputs($fp, $_POST["name"]); Or, set register_globals On in your php.ini file. R'twick -----Original Message----- From: Andreas Esser [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 9:14 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] writing form data into text file 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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php