English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want people to click the answer and also click finish, then they get a score with some information, can anyone tell me how to do this or point me in the right direction?

2006-09-20 16:48:56 · 4 answers · asked by Joey W 3 in Computers & Internet Programming & Design

4 answers

It is also called polls : here http://www.pollhost.com/
if you find it not good enough, search for polls for the website

2006-09-20 16:59:06 · answer #1 · answered by Mondschein! 5 · 0 0

Jin Tao above had a pretty decent basic form, but he/she mentioned that it's only HTML which is not true. The $_GET u see there is actually PHP. Running that on a regular machine will not give u the result u want. Furthermore PHP has to be enclosed in PHP tags such as or a simpler form for display . Also when using PHP, the page name has to have the *.php extension, as in 'results.php'

If you don't have access to a PHP server, then u might want to try out javascript. Javascript will be able to fetch "get" variables (the "method" attribute used in

tag). It is somewhat more complex than using PHP, but u gotta work with what u got. Here's a little script I had to split up the variables GET variables that have been submitted:




place that in the head section of ur results page, and it should parse the get variables into the array GETVars. Now what u do with the data is up to u.

The order of the variables in the query string is important, as it will determine the index of the array.
to retrieve data, use the following (i'm using document.write as example but it can be anything else):

// this will display the first variable, change the 0 for the other vars
with (GETVars[0]) {
document.write ("name of the variable:" + name + " ");
document.write ("value of the variable:" + value + " ");
}

Well anyway, I think this is way beyond the average javascripter's code. U've probably seen 10000% of what u really wanted to know. I was trying to experiment with javascript classes at the same time I was trying to retrieve GET variables.
In any case, if u want the easy way, go with PHP. On the receiving page, all u need to do to retrieve info is $_GET['varname'].

This probably just sounds like jibberish to u >.<
Cheers.

2006-09-21 16:19:38 · answer #2 · answered by rice kid 4 · 1 0

If you are on Apache learn a little PHP and how to connect to a database (MySQL). There is a lot of free help on discussion boards to help you learn. Also check out sourceforge.net. You may find an open source solution for what you want to do.

If you are on a Windows Server. You'll end up paying for something. You'll need a database. You may have to pay more for hosting with Microsoft SQL server, or you can use Microsoft Access, which you have to own or buy. There are some free solutions in ASP around the net, but they are harder to find, and some solutions cost money.

2006-09-20 17:01:34 · answer #3 · answered by LorettoBoy 4 · 0 0

Don't listen to Loretto, he's feeding you half information.

Depends on what you want to do with the information. If you don't want to store the information anywhere, you can actually just use plain HTML.

Example of your questionaire page (question.html)

Answer my questions







What's your name?






2nd page (results.html)

Results

Your name is $_GET['name'].



Anything beyond simple stuff like that and you're getting in to webscripting which requires PHP/ASP etc...too much in depth to go in to on here.

2006-09-20 17:41:50 · answer #4 · answered by Jin Tao 3 · 0 0

fedest.com, questions and answers