Click to See Complete Forum and Search --> : PHP Save form data in TXT or RTF file


MadSkillz
April 10th, 2011, 09:26 AM
Hello!
Can anyone help me with this?
I created a form but I don't know how to make it save multiple persons with birth date and phone in a TXT or RTF file.
The form looks like this:
Name:
Birth date:
Phone:

and I want to save the data in a TXT or RTF file like this:

Name: Radu
Birth date: 02.01.1990
Phone: 0711111111

etc.

PeejAvery
April 10th, 2011, 03:21 PM
http://w3schools.com/php/php_forms.asp
http://ar.php.net/manual/en/function.file-put-contents.php

Security is always an issue with flat-file databasing. Hopefully you're not storing any sensitive information. If you are...then you need to be using a database.