need help with adding text to a file using php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Levi2251
Forum Newbie
Posts: 1
Joined: Thu Oct 22, 2009 1:45 pm

need help with adding text to a file using php

Post by Levi2251 »

Ok I searched your forum and got 24000 results on this topic. I also searched google. I need a php code that will work with this form.

Code: Select all

<form action="code.php">
<b>Shoutout:</b><br />
<input type="text" size="20" maxlength="160"><br />
<input type="submit" value="Submit"><input type="reset" value="Clear">
</form>
I need this code so I can add text to a .txt file for an easy way to get messages. Can someone make the php code I need? Wouldn't it use fwrite()? I don't know much about php. Thank you in advance.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: need help with adding text to a file using php

Post by daedalus__ »

most people are going to make you do your own work

http://us3.php.net/manual/en/book.filesystem.php

start there. read a lot. don't get discouraged.
Post Reply