Here’s a little lump of code to paste into your form page.
http://pastie.caboo.se/199089
To use this, change your form page’s filename to have the .php file
extension. Paste this code into the Before HTML portion of the Page >
HTML Markup dialog on the form page.
Using an FTP application, move into your Web root folder, alongside
the form page, then move up two levels in the directory structure.
For example, if your form page is here:
/homes/yourname/htdocs/www/yourform.php
then move into the folder
/homes/yourname/
Create a new folder called data in that folder. With the folder
selected, use your FTP application to change the permissions on it to
world -everything: 777. Now, your Web server can create and write to
files within that folder. Because the file is outside of the Web
root, this is not a security problem from the outside world.
(Depending on how your server is configured, this is a security risk
from other users on the same server, but you would need to discuss
that with your hosting provider.)
If for some reason your server does not allow you to move two levels
above the form page, let me know and I will adjust the script
accordingly.
Set your form page to POST to itself, and be sure to use whatever
form validation you want to have using one of the validation Actions.
This script does not perform any validation.
Also be sure to set your form’s submit button so that it has the name
‘save’. It can say anything you like on the button (that’s the
button’s value, not its name) but it must be named save for the code
above to do anything at all. You make these changes on the right-most
tab of the Inspector while the button is selected.
Now, when the form is submitted, a text file called data.csv is
either opened or created inside the data folder, and the form
contents are written to it as a new line at the end of the file. Your
client can download this file using FTP, and open it in Excel. Excel
will notice that it’s a CSV file and convert it to a spreadsheet for
viewing.
At any point, you can simply delete that file from the server, and
the next submission will create a new one. In this way you can start
fresh, perhaps if there is a new seminar offering.
Walter
On May 18, 2008, at 1:09 AM, Doty Shepard wrote:
Yes. Possibly. How hard is it to set something like this up?
This is a website for a seminar that could have several hundred in
attendence. The form is a registration form for the event. It would
be nice
if she didn’t need to deal with several hundred individual emails.
Doty
From: Walter Lee Davis email@hidden
Reply-To: “email@hidden” email@hidden
Date: Sat, 17 May 2008 16:08:09 -0400
To: “email@hidden” email@hidden
Subject: Re: Forms confusion (total noobie)
Does that sound like something that your client could work with?
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options