Sam,
Thanks for the effort, but please read my question more clearly. I'm asking if its possible to do it in html, also i stated that I need to be able to do this without running any server.
Is it possible, yes or no, for a user to create a form made in html format, that will post the inputted information to a text document. If you can make emails, surely there is a way to post to a text file.
Main Topics
Browse All Topics





by: sam85281Posted on 2006-03-31 at 22:43:49ID: 16348572
Would help to know what server side language you're using (php/asp/VB/etc).
s"; );
A quick php example assuming you have Name: Phone: Comments:
Have your form action run a php script like this:
<?php
$filename = //put the filename to write to here
$name = $_POST[currentFile];
$phone = $_POST[newText];
$comments = $_POST[prefix];
$textToWrite = "$name\n$phone\n\n$comment
$fp = fopen($filename, "a") or die("Can't open $filename try again later");
fwrite ($fp, stripslashes($textToWrite)
fclose($fp);
?>
I'm not sure what the equiv in VB/ASP/.NET would be, but sure you could find it easy enough if you need it.
-Sam