Jump to content

Java to calculate in search form

Recommended Posts

Does anyone know if I can allow a user to select values from a series of questions in a search form to trigger a calculation of all lines of data to display in the "results" page?


Search page and answers

Question A: 3 (3 is the answer chosen by the user)

Question B: 2

Question C: 1

The table would be prefilled data for each question:

Name 1: 10 for Question A, 5 for Question B, 2 for Question C.

Name 2: 5 for Question A, 10 for Question B, 1 for Question C

Based on what the person enters in the search page, I would like to calculate this way using the above example and display a total:

Name 1: 42


Name 2: 35


Link to comment
Share on other sites

  • 8 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...