PDA

View Full Version : 1 vote button in this script please help


sharmarkasch
11-17-2003, 01:41 PM
Hello,

I have a cgi voting script from my yourhosting server but i would like people to vote 3 answers at 1 time and not push the button 3 times at each question........as the script is under here...

Who can help me re-write the script, so that people only have to push the button at the last question?????

Thanks for any help, so here is the script that was given to me by the yourhosting server.



<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>vote</title>
</head>

<body stylesrc="acursus.htm" background="images/BACK-REO.JPG" link="#800000" vlink="#800000" alink="#800000">

<!---start here--->
Hoe vind u de nieuwe stijl van de website van de K.C. REO<br>

<form action="http://www.kcrijssen.nl/cgi-bin/poll/survey.pl" method="post"><input type="hidden" name="id" value="1">
<input type="radio" name="response" value="1" checked>Goed<br>
<input type="radio" name="response" value="2">Zeer Goed<br>
<input type="radio" name="response" value="3">Redelijk<br>
<input type="radio" name="response" value="4">Slecht<br>
<br><input type="submit" value="Vote!"> </form>
<a href="http://www.kcrijssen.nl/cgi-bin/poll/result.pl?id=1">Zie resultaat zonder te kiezen</a><br>
<!---end here--->


<!---start here--->
Kunt u vinden wat u zoekt op de website?<br>

<form action="http://www.kcrijssen.nl/cgi-bin/poll/survey.pl" method="post"><input type="hidden" name="id" value="2">
<input type="radio" name="response" value="1" checked>Gemakkelijk<br>
<input type="radio" name="response" value="2">Minder gemakkelijk<br>
<input type="radio" name="response" value="3">Moeilijk<br>
<br><input type="submit" value="Vote!"> </form>
<a href="http://www.kcrijssen.nl/cgi-bin/poll/result.pl?id=2">Zie resultaat zonder te kiezen</a><br>
<!---end here--->

<!---start here--->
Vind u de hyperlinks op de hoofdpagina overzichtelijk?<br>

<form action="http://www.kcrijssen.nl/cgi-bin/poll/survey.pl" method="post"><input type="hidden" name="id" value="3">
<input type="radio" name="response" value="1" checked>Ja<br>
<input type="radio" name="response" value="2">Nee<br>
<br><input type="submit" value="Vote!"> </form>
<a href="http://www.kcrijssen.nl/cgi-bin/poll/result.pl?id=3">Zie resultaat zonder te kiezen</a><br>
<!---end here--->

</html>

Jeff Mott
11-17-2003, 07:32 PM
You would have to modify the CGI script to allow the submission of an arbitrary number of polls, as well as decide on a naming convention for the form controls so the script will know which control pertains to which poll.

Note: What you posted is an (invalid) HTML document, not a CGI script.

sharmarkasch
11-17-2003, 09:03 PM
Hi

So now you know that it is all new to me, i tryed to find out what is all in my cgi/bin/poll directory, and i really am not sure what to do with it.
cfg.pl + footer.txt + header.txt + ip.txt + iptime.txt + result.pl + setup.setup + servey-adm.pl + servey.pl.

I know now that my hostingserver is getting the script from http://www.cgi-factory.com

And i don't think i will get any further with this if i don't get any help.

So is there any chance in me getting this script to work?

Or.....another script that i can use on cgi/bin where you can vote to 3 question at 1 time?????? that is more easyer to use for me?

the page i have the "html" on is
www.kcrijssen.nl/vote.htm


Thanks so much for any reply