Page 1 of 1

news script

Posted: Sun Jun 01, 2003 2:36 pm
by Frostbite
i was wondering if anyone could help me with this, its probably really simple but im not sure how to do it

all i need is one text field and a submit button, when you click the sumbit button the content in the text field is put into a file in the same directory called data.txt

could someone help me please?
thanks

Posted: Sun Jun 01, 2003 5:06 pm
by McGruff
You need a html form and a php file to process the form (point the form action at processor.php and use POST method).

If you have a textarea field in the form called 'text', the form processor would just write $_POST['text'] to a file.

Do you have a manual? See php.net if not and check out the filesystem functions.

Posted: Sun Jun 01, 2003 7:13 pm
by Gappa
there is a tutorial on doing this over at http://www.codewalkers.com