Hope someone can help. I am trying to write a php script that will create a
text file with dynamic fields in it,save the page and then mail it as an
attachment.
To be more precise I want the some users details input to the script (name,
email address etc. ) and then these variables to be inserted into a text
template
at various points and then then resulting text file to be saved on the
server and
then mailed as an attachment.
The problem I am having is creating the text document from the script and
saving it. Would I achive this using a template that is accessed using fopen
and then using fwrite to insert the variable data at the relevant points or
is there a different way?
Thanks in Advance,
Richard Price
text file with dynamic fields in it,save the page and then mail it as an
attachment.
To be more precise I want the some users details input to the script (name,
email address etc. ) and then these variables to be inserted into a text
template
at various points and then then resulting text file to be saved on the
server and
then mailed as an attachment.
The problem I am having is creating the text document from the script and
saving it. Would I achive this using a template that is accessed using fopen
and then using fwrite to insert the variable data at the relevant points or
is there a different way?
Thanks in Advance,
Richard Price
Comment