Form : different results (with Javascript)
hi - can anyone help me for this ?
i want to make a test on my site, a kind of small survey.
The form should go like this (very important : javascript ASP - no PHP, no CGI) :
Questions :
1. when do you smoke you 1st cigarette when you get up ?
* - 5 mn (3 pts)
* 6/10 mn (2 pts)
* 31/60 mn (1 pt)
* + 60 mn (0 pt)
2. do you smoke when you are sick ?
* yes (1 pt)
* no (0 pt)
etc.....
for each answer the user gives, there is an amount of points.
at the end of the survey, i want to cumulate the points and to display one of the 3 results, according to the number of points
Answers :
0-2 points : non-addicted to cigarette
3-6 pts : merely addicted
+6 pts : very addicted
thank you for your help.. and sorry for my bad english !
detox posted this at 13:50 — 11th January 2002.
They have: 571 posts
Joined: Feb 2001
Sorry, are you actually wanting someone to script this for you?
or just some advice on how to do it.....?
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.