Link to home
Start Free TrialLog in
Avatar of zippy221
zippy221

asked on

Survey using radio buttons

Here is what I have:  
I have 7 questions set up like this:
1. How would you grade our products and service?  
Radio buttons--->  A  B  C  D  F
Comments: {text box}

Okay, what I have to do is average this out.  A's = 5points; B's = 4points, etc, except that F's = 0points.   The first 6 questions need to be added up then divided by 6.  Questions 2,3,4 need to be added up and divided by 3.  Any help would be greatly appreciated.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of bark10
bark10

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zippy221
zippy221

ASKER

Adjusted points from 50 to 75
Okay well let's say, instead of, a "Do Avg" button I wanted a submit button and it would check for every question that was below a B rating and email it to someone, and then according to the average it was submitted to a certain database.  Example: Good Average Database or Bad Average Database.  Also, if on the survey a person gave all A's then that would be emailed upon submission to someone else. If you don't know, then don't worry about it, I just thought I would ask while I was here :)

Thanks
That sort of functionality is definitely better performed by the (server side)script that processes the form, rather than at the client submitting it.

Brian
So, is it possible to put server-side script inside my client-side script?  ....  
I think you misunderstand :

The <FORM> is used to submit details to a web server.

You fill out the form, press 'submit', and the details are sent to the server. A 'script' running on the server reads those details, performs whatever it needs to perform, and then sends a page back to you.

It is this 'script' that should perform the emailing.

You can't embed server script and client script together. Server script is processed by the server before sending the page to the client. Client script is processed by the client after the page has transferred to the client.
Clients never 'see' server side script.
Servers 'see' client side script only insofar as they 'see' the whole document. But to the server, it is all just HTML text.

Brian