Hi Ron,
Welcome to the FormMail forums.
It's not critical, but yes, you can replace "SampleForm" with a name you want.* Just make sure you change it throughout the form.Finally, in the Form Method tag, do I need to include a "ENCTYPE="text/plain" and your code shows "name="SampleForm", do I replace it with a file name, or...?
The ENCTYPE defaults to "application/x-www-form-urlencode" which is the correct encoding for submitting forms.* So, no, you don't want to change this.
FormMail already supports this feature. It can create a CSV (comma separated values) database (file) which you can import into your real database or spreadsheet.I would like to set up a visitor form that would append each visitor input to a record file that I can import into Excel, Access. or a MySQL database (it is on my site but I have never used it).
In FormMail, you need to set CSVDIR to a directory where you want to keep your CSV files.
In your form you need to specify the following hidden fields:
There's quite a bit of documentation in formmail.php about this.
- csvfile (the name of the file you want to store values - this will be in CSVDIR) [/*]
- csvcolumns (the "columns" you want in the CSV file - the fields from your form)[/*]
The last step is to manually create your csvfile on your server and make it writable by your web server (rw-rw-rw-).
Let me know if you need any more help with this.
*


Reply With Quote
Bookmarks