Click to See Complete Forum and Search --> : vote page


sitemann
05-23-2005, 04:39 PM
can anyone inform me of a multi choice vote page where I can have as many questions as I want and
voters can check a radio button their vote
and the script gives results like this lonnie 400 richman300
and keeps a runing vote total and give the new vote total each time
a new vote is cast

and also inform me how to get it to work on my website
when I test the asp cgi scripts that I have used on my site I recive an error message concerning permissions
Thanks

Nedals
05-23-2005, 07:52 PM
..when I test the asp cgi scripts...
Is this ASP or Perl?
If Perl, set the permissions to chmod 755. (rwx r-x r-x)

sitemann
05-24-2005, 11:54 AM
Hi Nedals Nedals
This to answer your reply to my cgi post
I set my permissions to 755 but recived this error when tring/testing
cgi scripts on my wbsite

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@clubendie.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
can you inform me how to correct this
Thanks
siteman

Nedals
05-24-2005, 12:58 PM
Typically this is caused by a syntax error in your script, but here's a few things to check:

1. Make sure your shebang line is correct
#!/usr/bin/perl ...something like this

2. Did you include a header before your html output followed be two \n's
print "Content-type: text/html\n\n";
or
print $q->header(); ## if using CGI (see below)

3. Add this line near the beginning of your script and your errors will be reported on the browser.
use CGI::Carp(qw/fatalsToBrowser/);

Also consider using...
use strict; ## avoid silly spelling errors and control variable scope
use CGI; ## Makes life much easier.
my $q = new CGI; ## a cgi object;

Nedals
05-24-2005, 03:54 PM
Is there some reason why you now have 4 posts on this same subject?

sitemann
05-25-2005, 02:17 PM
yes neded to add the error message to the last one
also
can you inform me how to turn this vote form Cast Your Vote


Favirite Song [________]

Favorite Artist [________]

Favorite Band [________]

Favorite Group [________]

Favorite Club [________]

Favorite Music Site [________]


into a cgi vote form and make it work and correct the error

Nedals
05-25-2005, 02:33 PM
If your current script is relatively short, post it here, otherwise attach it as a .txt file. I'm happy to help out but I'm not going to write it for you.