Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
Hi
I' m new to formmail and CSV files.
I have formmail working OK and it is set up to save the csv data on my server and attach a copy of the data to the email sent when the form is submitted.
All of the data is being stored in the server file (formdata.txt) but only the last of the 3 fields in my test form is coming through on the email and its attachment.
I think the problem may be something to do with the filter options, but I don't know enough yet to be sure.
Here is my form code
<form method="post" action="http://www.wholesalegolf.co.uk/golfinfo.php" name="SampleForm1">
<input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
<input type="hidden" name="recipients" value="kenh4256wholesalegolf.co.uk" />
<input type="hidden" name="required" value="realname,email,mesg" />
<input type="hidden" name="subject" value="Sample FormMail Testing" />
<input type="hidden" name="csvfile" value="formdata.txt" />
<input type="hidden" name="csvcolumns" value="email,realname,mesg" />
<input type="hidden" name="mail_options" value="PlainTemplate=plain.txt" />
<input type="hidden" name="filter" value="null" />
<input type="hidden" name="filter_options" value="Attach=formdata.txt,KeepInLine" />
<table border="1" cellspacing="5%">
<tr>
<td>
<p>Please enter your name:</p>
</td>
<td><input type="text" name="realname" />
</td>
</tr>
etc...etc....
and here is my php file code that is associated with the CSV output
$FILTERS = array("encode"=>"$REAL_DOCUMENT_ROOT/cgi-bin/fmencoder -kpubkey.txt","null"=>"cat");
I'm really stuck right now. I hope one of the more experienced users out there can help me.
Thanks...............Ken
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks