0

Hi all

I have a enquiry form with 15 or more items on it

items like "where did you hear from us"
Options in the dropdown next to it is:

Internet
Newsletter
Magazine
Friend

when internet is selected a text box apears
Newsletter shows nothning
magazine asks what magazine in dropdown
Friend shows text box

I neet to learn how to do this with more options on my form

I have things like "do you require transport" YES or NO
then an dropdown must apear asking what kind taxi or car rental.
I have found hundreds of code on google but no tutorial.

I realy want it explained why and how i could write my own, javascript php html

thank you

2
Contributors
1
Reply
3
Views
6 Years
Discussion Span
Last Post by diafol
0

This is js. You can use js to hide/show a series of textboxes and supporting labels depending on the onselect attribute. Nothing really to do with php, unless you need help with processing data from the sent form. In addition, some may suggest ajax for this - the server does not need to be consulted with regard to this functionality. Pure js.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.