Forums

Write to any plain text file

Dylan 30 Apr, 2008
I need a form that writes to a text file (any file) on a default Ux/Linux webhost.

The generated or modified file needs to be emailed to the Joomla admin.

How do I go about this. Any clues? All help welcome and highly appreciated
Max_admin 01 May, 2008
hi,

first find some PHP code to write to file, then write this variable to it : $html_message

now put this PHP code in the onsubmit before email box

then add this file to the attachements array with something like this :

$attachments[] = "path to file";

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Dylan 01 May, 2008
Thanks, that would do the trick indeed. Much obliged Sir.
This topic is locked and no more replies can be posted.