Radio buttons oh other form elements

Hi,

I was wondering if there was a way of creating a radio button element in which the options themselves are form elements (text area or a drop down list) using Perl-CGI. Is there one?

Basically I want one of 2 form elements but not both.

Regards,
garric

I'm not sure I get what you are saying, and it doesn't sound very usable anyway. Something you see on some sites is roughly this:

Select annoying bunch of things!!!

(X)  First annoying bunch of things

      [ ] Throw errors for valid email addresses
      [ ] Assume foreign addresses have a ZIP code
      [x] Sign me up for a random mailing list which I cannot unsubscribe from
           Email: [era@example.com    ]

( ) Second set of annoying things

      [ ] Serve entire site as Flash (greyed out)
      [ ] Require non-free codec: [v] DivX :-)  (greyed out)
      [ ] Background music you can't turn off (greyed out)
      [ ] Force download of untrusted Windows component (with malware) (greyed out)

Something along these lines can be done in basic HTML, but you need some clever JavaScript and/or CSS to grey out and disable the part which is not selected.

Thanks. Let me explain. If I want to have 2 input options, one with a text area which can take mulitple entries or a file upload capability - I would want one of these disabled if the other was in use. Hope this explains it.

I would not mind the Javascript method. Can you help me with this?

Regards,
garric

I'm not really the person to help you with that, but Google is your friend