Re: Need help with output from form to .txt file
| From: | Thorben | Date: | Sat, 15 Nov 2003 11:06:03 +0000 |
| Subject: | Re: Need help with output from form to .txt file | ||
| References: | 1 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-177728@lists.php.net to get a copy of this message | ||
Kristers Hotmail wrote:
Hi!! When i send data from a form and there is some special characters like ' " \ php seems to add an extra \ before every special character in the transfer from the form to the point when I put the data in the .txt file where i store it. It is a guestbook I'm using the script for so it is a bit anoying. I also have a guestbook where I use MySQL as database and I do not have the same problem there. Esample: I'm sendeing "hello" from the form The result I get in my gb.txt file is \"hello\" Why is that?? Can anyone help me Regards KristerHi, there is a function which delete the backslahes. Before you put the text in the file, do stripslashes($yourstring) -- - RPG Genesis 2004 - - Make your dreams believable - http://www.rpg-genesis.de