Radio buttons oh other form elements


 
Thread Tools Search this Thread
Top Forums Web Development Radio buttons oh other form elements
# 1  
Old 08-10-2008
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
# 2  
Old 08-17-2008
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:

Code:
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.
# 3  
Old 08-17-2008
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
# 4  
Old 08-17-2008
I'm not really the person to help you with that, but Google is your friend
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remove x lines form top and y lines form bottom using AWK?

How to remove x lines form top and y lines form bottom. This works, but like awk only cat file | head -n-y | awk 'NR>(x-1)' so remove last 3 lines and 5 firstcat file | head -n-3 | awk 'NR>4' (5 Replies)
Discussion started by: Jotne
5 Replies

2. Shell Programming and Scripting

Transpose Data form Different form

HI Guys, I have data in File A.txt RL03 RL03_A_1 RL03_B_1 RL03_C_1 RL03 -119.8 -119.5 -119.5 RL07 RL07_A_1 RL07_B_1 RL07_C_1 RL07 -119.3 -119.5 -119.5 RL15 RL15_A_1 RL15_C_1 RL15 -120.5 -119.4 RL16... (2 Replies)
Discussion started by: asavaliya
2 Replies

3. Web Development

buttons links in frame

Happy X-Mas to all members... Hi, I have one html file page1.html as below <HTML> <HEAD> <TITLE>Utilities</TITLE> </HEAD> <FRAMESET ROWS="5%,95%"> <FRAME SRC="frames1.html" NAME=SIDEBAR> <FRAME SRC="frames2.html" NAME=SAMPLE> </FRAMESET> </HTML> ... (0 Replies)
Discussion started by: villain41
0 Replies

4. Shell Programming and Scripting

replace buttons with hyperlinks

I have a script that uploads file push buttons, but i want to replace buttons with hyperlinks. Please send suggessions Thanks (1 Reply)
Discussion started by: handshakeit
1 Replies

5. UNIX for Advanced & Expert Users

Changing Unix form to Microsoft Word form to be able to email it to someone.

Please someone I need information on how to change a Unix form/document into a microsoft word document in order to be emailed to another company. Please help ASAP. Thankyou :confused: (8 Replies)
Discussion started by: Cheraunm
8 Replies

6. Programming

text boxes, radio buttons , check boxes in c++ on unix

Hi ! Please tell me how to get radio buttons, text boxes , check boxes , option buttons , pull down menus in C++ on Unix. I think it would be done using curses.h ..but that's all i know. TIA, Devyani. (3 Replies)
Discussion started by: devy8
3 Replies
Login or Register to Ask a Question