Page 1 of 1

need help with adding text to a file using php

Posted: Fri Nov 27, 2009 8:46 pm
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.

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

Posted: Fri Nov 27, 2009 9:11 pm
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.