On 23 Jan 2007 in macromedia.dreamweaver.appdev, yleokim
wrote:
> I've seen a way Dreamweaver can store data to .txt file,
but it
> requires creating a blank.txt file first and then
placing the
> blank.txt file in a folder that Dreamweaver will load
the results
> from a form into.
>
> What I really want to know is, can Dreamweaver store the
data
> directly to a .txt file without the need to create the
blank.txt
> file (sort of like the process for creating a simple csv
file). If
> it can be done, can you share the process?
If I'm reading your request correctly: Dreamweaver can't
store
/anything/ from a form to a text file. It's the server that
does that.
And as far as I know, DW doesn't have any server behaviors
for text
files, so you'll have to code those by hand.
Not knowing what kind of scripting your server supports, the
process
would go like this:
- Make sure that you have write permission on the directory
where you
want to create the file.
- (Pseudo) Code looks like this:
<*pseudo
if (file exists) {
// Code to append information goes here
} else {
// Code to create file and check creation goes here
// Code to insert information goes here
}
*>
--
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/email.php