Rigging up a simple poll

P

Paulus

I have added a simple poll to my webiste. The csv file is updated whever a
voting option is clicked.

Is there a simple way to have the results of the csv file displayed on my
web page? I have looked at cgi based options, but they appear not to be
supported by my server.

If this is not possible, then I suggest a frontpage component in the next
verion that can do this.

Cheers
 
A

Andrew Murray

Doesn't the Poll script you're using display the results? Most of those
types of scripts do (or they jolly well should else it defeats the purpose -
they display the results in a bar graph type format & percentages, showing
the number/percent of responses to each poll question). Strange, if it
doesn't do that.

I suggest re-reading the instructions and checking that it doesn't dislay
results, but since we don't know what script you're using, it's a bit hard
to suggest a solution. One product I use that uses CSV files is
www.ezscripting.com
You'll find a suite of scripts there, that read, write, search, and edit CSV
file/databases. Probably the 'read' script is the one you want.
Unfortunately it is CGI/Perl, which is useless if as you say, your server
doesn't support CGI.

What server side scripting are you using? If not CGI, I would guess then
PHP.

Frontpage is not going to have a "next" version. The new product replacing
Frontpage is Expressions Web Designer.
 
P

Paulus

I'm using hrml code to display a form. The results of the form are sent to
a csv file. I am not using a script. I was wondering if html code could
pull the data from the file, calculate it and display it.

Cheers.
 
A

Andrew Murray

If not using a script how are the results being written to the file? ( I
assume you're using the FP extensions?)

If your host supports the FPSE then I'm suprised they would not support
Perl/CGI scripting like that for a poll or quiz. If they *don't* support
the FPSE, then your form data would have to be processed using a script of
some sort, to write the results to the file.

If you need functionality like calculations you need to turn to something
like javascript, vbscript or even server side scripting like ASP, PHP, or
perl/cgi.

I'd suggest using a proper "poll/quiz" script - but if your host doesn't
support the required scripting language(s) then you may need to find a host
that does, or double check with your host to see if they do support such
scripts. Most should.

HTML code on its own cannot do what you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top