help with form field


#1

i have 2 pull down list/menu

First one has 3 options a) pig b) dog c) cat
Second has a) car b) bus c) train

how can i make sure that if i select c) cat, that only a) car is available? and that i cannot select b) and c)

current my setting is like this…

PayPal <?php /*?> pig <?php */?> dog <?php /*?> cat <?php */?>

any help would be great.

Thanks


#2

Your best bet is probably to use Javascript to make the selections. Otherwise every time someone makes an initial selection such as C.) cat, you would have to submit it to the server.

Using Javascript you can limit the selections (quicker too), of a field based on the input of anther field.