Hello Andre, Try this
----------------------------- <html> <head> <basefont face="Arial"> </head> <body> <?php // set the file name $filename = "graffiti.dat"; // open the file $handle = fopen ($filename,a); // write the string to the file handle fputs ($handle, $graffiti); // close the file fclose ($handle); ?> <form action=graffiti.php method=get> [I changed graffiti.php4 to php] <input type=text size=30 name=graffiti> <input type=submit name=submit value="Add your two bits!"> </form> <?php // Display current contents of file if available if (file_exists ($filename)) { echo "<b>Current graffiti reads: </b>"; readfile ($filename); } else { echo "File not found!"; } ?> </body> </html> -- Best regards, Colin mailto:[EMAIL PROTECTED] 4:20pm up 18:50, 0 users, load average: 0.01, 0.00, 0.00 Don't panic! .....registered linux user #223862
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com