| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Nooneknow
Join Date: Nov 2004
Location: CA, USA
Posts: 38
|
Form question
Hi, I'm working on a form and wondering if there's a script that can do the following. I have: Q1: radio inputs with 2 options : Yes and No If somebody clicks Yes, then they go to Q2: fill in some input text fields. If they click No, they'll skip Q2 and go to Q3. My question is: can we do something with javascript & CSS so that when they click No in Q1, Q2 with input text fields become unfillable, hidden, or at least change colors... Thanks for help. |
|
|
|
|
|
#2 (permalink) |
|
Spare Parts
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 4,972
|
I would do it with PHP. Would have q1.php, q2.php, q3.php. I would include q1.php in, for example, quiz.php. Then returning the form results to quiz.php if $q1answer == A include q2.php elseif $q1answer == B include q3.php etc. |
|
![]() |