Hi,
I have been working with a script that takes a bunch of variables from a form, performs some string operations on them, and then saves the concatenated output as a textfile in the format "var1=$var1&var2=$var2..." (below)
$fp = fopen("text.txt","w+");
$htmlstring = stripslashes ($string);
fputs($fp,$htmlstring); fclose($fp);
What I would like to do is include an email variable in the form which would allow the user to have the output emailed to them instead of writing it to the server. What is the syntax I would have to use to make this work properly ?
TIA
c