View Full Version : storing text
BRUUUCE
Jan 30, 2007, 04:50 AM
I have an html file in a folder. When I open it up I have a text box and two buttons below this. One to clear the box which works, the other button, I want it to save to a .txt file within the folder the html file is in. And, if possible, everytime somthing is saved, it goes in the same .txt file. (kind of like a running/compiled list). my knowledge doesnt extend farther than html/css/very little java. Is there an easy fix to this or do i need to study up on php or some databaseish stuff?
Mitthrawnuruodo
Jan 30, 2007, 04:56 AM
I'm sorry, but I don't know any easy - html only - way to do this... A bit of php knowledge should help, though: http://no2.php.net/manual/en/function.fwrite.php
BRUUUCE
Jan 30, 2007, 08:48 PM
I'm sorry, but I don't know any easy - html only - way to do this... A bit of php knowledge should help, though: http://no2.php.net/manual/en/function.fwrite.php
http://www.tizag.com/phpT/filewrite.php
i like taht one better, i think? does php have to be online though? cause when i put it into text pad, nothing happens :(
jsm4182
Jan 30, 2007, 11:55 PM
http://www.tizag.com/phpT/filewrite.php
i like taht one better, i think? does php have to be online though? cause when i put it into text pad, nothing happens :(
php is a server side scripting language so it has to be on a web server to work.
BRUUUCE
Feb 1, 2007, 06:47 PM
php is a server side scripting language so it has to be on a web server to work.
hmm, not what i need then. maybe i poke around some javascript.
thanks for the help
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.