[PHP-WIN] php guestbook

2002-08-02 Thread Andreas Esser
hello, i want to include a php guestbook into my website... i´ve found a script which should write all the variables (i.e. email, message...) the visitor filled out into a textfile... but this don´t really work... it doesn´t write anything in the textfile... but when i type something into the tex

[PHP-WIN] writing form data into text file

2002-08-02 Thread Andreas Esser
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: Sign Your Name: the function readfile()

Re: [PHP-WIN] writing form data into text file

2002-08-02 Thread Andreas Esser
0$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 PROTEC

[PHP-WIN] PHP / MySQL Guestbook

2002-08-29 Thread Andreas Esser
hi, i have written a php guestbook using a mysql database to store and recall the entries that where typed in by the visitor. there is a formular with several fields like "name", "email" and "message". here´s the problem: the visitor types some message into the message field, i.e.: " hello,

[PHP-WIN] .htaccess protection / php

2002-08-29 Thread Andreas Esser
hi, i have written a php script, that automatically creates an user directory, a .htaccess and an index.php file in this user dir. the file, where the username and the password is stored, will also be created automatically. now the problem: i am using the php " md5( ) " function to encrypt the