Description
This generic form handler is designed to make life easier (and safer)
for the harried sysadm running multiple vhosts on a single apache (or
other web server) instance. Once installed, users can create new forms
at will.
A single python script does all the work, and expects to find all the
related files in its subdirectories. Each vhost's config, template, and
data files live in a separate subdirectory.
Features
- Accessible, text-only anti-robot test
- No javascript, active-x, or other browser-side processing
- Uses encrypted cookie to maintain session state
- Cookie removed after submission processed
- Options read from config file, not passed in form fields
- Can send email with results
- Can save results to delimited file
- Designed for use in multiple vhost environment
- Allows the specification of required fields
Installation (for the webmaster)
Get the tarball here: form.tgz
An installation script is included. Given a default install into
/usr/local/form, the installation is as simple as:
- Download the tarball to /tmp (or other suitable location)
- cd /tmp
- tar zxf form.tgz (creates ./form directory)
- Adjust installation script destination and/or userid's, then do
- sh form/install
- For lightweight use, a sample thttpd config file is included
- For installation on apache, the following lines should be added to httpd.conf:
ScriptAlias /form /usr/local/form/form
<Location /form>
Order allow,deny
Allow from all
</Location>
- An example app is included in /usr/local/form/localhost/test
- A directory is automatically created for the default hostname, directories for other vhosts will need to be created manually.
The directory structure is:
/usr/local/form//
All saved data goes in:
/usr/local/form//data/
Use (for the end user)
|