[thelist] Questionnaire Script?

Aleem Bawany aleem.bawany at utoronto.ca
Wed Feb 19 01:52:01 CST 2003


> I'm looking to do a very involved questionnaire for owners of
> a certain type of pet. I've been looking at some perl/php
> scripts, and I'm not finding what I want. I need to better
> analyze the responses then just percentages of the answers
> from each question. I need compare the responses to each
> other. For example, say we have two questions (there may be
> 100 questions in this

Javascript will also do for this task. Grab all the answers
in a form, post them to a php/perl/asp script which can write
the results to a file on your server or maybe a database, if
that's where you're pulling the questions from.

> I need to find the percentages of respondents whose pets are
> 3-5 years old
> *and* have been diagnosed with cancer. Or, with further
> questions, find bring up a search of all responses that say
> their pet has been diagnosed with cancer, and see what types
> of food were provided, how often the pets exercised, and what
> treatments were given. That kind of stuff.

All that information will can be aggregated from the data you
collect. In a previous application, I gathered the results
using JS, into a comma-seperated file. If running locally,
the JS (or Jscript in particular) can write to the disk itself.
If off a remote server, the page can POST the results to a perl/
PHP/ASP script which just writes them to disk on the server-side.

The comma-seperated file (CSV) can be imported into excel, and
using excel, getting percentages, totals etc. is a breeze. It'll
be fast, robust and portable too (The program I wrote
also ran off a disk, as a stand-alone HT application - should take
you 5-10 mins to make it stand-alone).

aleem

[ http://members.evolt.org/aleem/ ]




More information about the thelist mailing list