[ic] Quick and dirty "write to file"

Marty Tennison marty at dripdepot.com
Tue Sep 28 14:39:22 UTC 2010


On Tuesday, September 28, 2010 07:18:42 am Peter N wrote:
> Hi all,
> 
> I know I've done this before, but I can't find any code where I have
> taken a CGI variable, e.g., emailaddress, and appended it to a plain
> text file to accumulate a mailing list. Can someone refresh me?


Not tested....

[log 
  file="path/to/some/file.txt" 
  type=text 
  hide=1 
  interpolate=1][cgi emailaddress]
[/log]



[perl]
$Tag->log({
  file => "path/to/some/file.txt",
  body => "$CGI->{emailaddress}\n",
}); 
[/perl]


Marty Tennison Drip Depot Inc 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.icdevgroup.org/pipermail/interchange-users/attachments/20100928/ce20217a/attachment.html>


More information about the interchange-users mailing list