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
news script
Moderator: General Moderators
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.
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.
there is a tutorial on doing this over at http://www.codewalkers.com