Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-08-2012, 07:26 AM #1
- Join Date
- Nov 2012
- Thanked 0 Times in 0 Posts
How to change values based on user inputs
I am new to JS and web dev in general. I have a conceptual problem in which i have to design a form which have questions and answers as options. On the basis of what option the user selects (and the data is being collected) the options to the answer to the next question changes.
For example, if for the first question , the user selects 1 then for the second question user can only select 1 or 4 . Whereas if for the first question the user has choosen 2 then for the second question then user can only select 3.
Also, after the user fills the form i have to save it in a dB.
So, my question is, Is it possible to completely do this on the client side. Once again i am not at all good with either JS or PHP. If its possible then which methods can be used and how can i interact with dB. If somebody can elobrate my problem (the first paragraph) in terms of JS/PHP(if its required) then i would be very grateful to him/her.
11-08-2012, 11:29 AM #2
- Join Date
- Mar 2005
- Portsmouth UK
- Thanked 504 Times in 491 Posts