sunray_2003
asked on
create multiple choice test form
I would like to create a multiple choice test form using html .. I am familiar about html forms but just wanted to know
what script I need to include so that it takes effect when users click on the submit buttom..
A small example is appreciated..
I just want to use html (only) to create the form and may be use cgi or perl script ..
Thanks,
Sunray
what script I need to include so that it takes effect when users click on the submit buttom..
A small example is appreciated..
I just want to use html (only) to create the form and may be use cgi or perl script ..
Thanks,
Sunray
ASKER
I would like to have in CGI..
what link you are talking about ??
I know how to create forms .. ( i mean using those radio buttons).. But what I am looking is the cgi script.. I am seeing those online ( i mean doing google search) .. Trying to see which one is better..
Sunray
what link you are talking about ??
I know how to create forms .. ( i mean using those radio buttons).. But what I am looking is the cgi script.. I am seeing those online ( i mean doing google search) .. Trying to see which one is better..
Sunray
>>I am seeing those online
Yes, there are a lot of them. This one is pretty simple, but your needs may be far more complex...
http://www.abdn.ac.uk/diss/webpack/chap27.hti
Yes, there are a lot of them. This one is pretty simple, but your needs may be far more complex...
http://www.abdn.ac.uk/diss/webpack/chap27.hti
ASKER
You are correct. There are lot ..
Thanks for your link.. I shall check that and will be back..
Mine is just very simple.. Just few questions in a page and all I want is once the user chooses everything
and presses submit , it should say you have got x out of y questions correct.. that is all I want
Thanks,
Sunray
Thanks for your link.. I shall check that and will be back..
Mine is just very simple.. Just few questions in a page and all I want is once the user chooses everything
and presses submit , it should say you have got x out of y questions correct.. that is all I want
Thanks,
Sunray
Then that code should do it for you - it does pretty much exactly that...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
May be I am overlooking something in these links.. I am not able to find the cgi script for doing this quiz..
Do you see that ?
Sunray
Do you see that ?
Sunray
> what link you are talking about ??
A link to your form.
A link to your form.
ASKER
well I am yet to create a form.. But that is not a problem here ..
I am just looking for a cgi script to which would come into play once the user clicks on submit button..
The cgi script should just take in the answers, compares it and should say you have got x out of y points or something like that
Sunray
I am just looking for a cgi script to which would come into play once the user clicks on submit button..
The cgi script should just take in the answers, compares it and should say you have got x out of y points or something like that
Sunray
The first one is here:
http://www.abdn.ac.uk/diss/webpack/chap27.hti#27.3
It's at the bottom part of the page. The cgi for the script is here:
http://www.abdn.ac.uk/tools/unix/quizedit/
The extropia one has a "download now" link.
Thanks
http://www.abdn.ac.uk/diss/webpack/chap27.hti#27.3
It's at the bottom part of the page. The cgi for the script is here:
http://www.abdn.ac.uk/tools/unix/quizedit/
The extropia one has a "download now" link.
Thanks
ASKER
The first link of yours in your latest comment doesnot say about the script
The second link gives C code ..
extropia download page of quiz doesnot workk...
Sunray
The second link gives C code ..
extropia download page of quiz doesnot workk...
Sunray
ASKER
I think it would be better to move this question to cgi area ..
I shall post a 0 pt in CS
Sunray
I shall post a 0 pt in CS
Sunray
Sorry Sunray - the links works fine from this end ...
ASKER
George,
The first link works.. I downloaded all the files .created the html form also.
I see in my server there is no cgi-bin directory.. can I create it and move the script to that directory or the administrator should create the cgi-bin directory .. I donot see any cgi-bin directory hence I create my own.. Put the script file there
But it doesnot work. The link actually has a C code and it is compiled to get script.. I am looking something like quiz.cgi
Sunray
The first link works.. I downloaded all the files .created the html form also.
I see in my server there is no cgi-bin directory.. can I create it and move the script to that directory or the administrator should create the cgi-bin directory .. I donot see any cgi-bin directory hence I create my own.. Put the script file there
But it doesnot work. The link actually has a C code and it is compiled to get script.. I am looking something like quiz.cgi
Sunray
Seriously... what does your server actually support? What's the URL?
ASKER
I have got a linux server. well not mine.. It is actually one of the hosting company
Sunray
Sunray
Thanks Sunray - glad you got everything working - although something tells me that the info in this paq may be more valuable in the html section, sice that covers all of the different scripting methods that can be used - often something like this can be a combination of cgi, javascript, and asp.
What do you think?
What do you think?
ASKER
. But it was more of CGI script and I had to work more on the CGI side rather than html ..
Well I think that way
Sunray
Well I think that way
Sunray
Yes, I guess you're right.
Thanks again.
Thanks again.
Posting a link or the HTML would also help us help you.