
Originally Posted by
Andy101
This is easy to code for a PHP programmer, especially when your preference is to save to a spread sheet format.
Here are some tips for specifying your requirements:
For this I would save as .csv (comma-separated values) to the server. This file would be appended with newly submitted form data.
The post vars Keys, would be the column headings and the post values, the data.
If the file doesn't yet exist, the new CSV file would be created with the Keys as the column headings. Then data is appended as new lines of comma-separated values.
The format of the CSV file is very simple such as:
Name,Email
Fred,fred@site.com
You can then download this and import into Excel or any other spreadsheet.
For the web form, the submitted data needs to be sanitized i.e. run through filters that check for valid data.
Also, I would throttle the submission rate from the same IP address and also include the IP address in the table (so you can block it if need be).
These measures are to cut down on spam.
And, ensure that the file on the server is not readable by the public by setting the file permissions appropriately.
Use of a captcha would be useful too.
Bookmarks