| | |
Need some help with RADIO buttons forms
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 36
Reputation:
Solved Threads: 0
So am using Perl to dynamically generate a form with radio buttons. And no, this is not a Perl question. Essentially the form allows the user to specificy which links to use for Line 1, 2, 3, etc. And this can be a long form. The problem I have is that in placing the links in the VALUE field, each link shows up on each radio button. Makes it very ugly.
Is there a way to label each radio button with just text, but have it's value be the link? I tried the code below, and am still searching. But when you're new to a certain language, even Googling doesn't just give up answers.
Thanks
Is there a way to label each radio button with just text, but have it's value be the link? I tried the code below, and am still searching. But when you're new to a certain language, even Googling doesn't just give up answers.
Thanks
HTML and CSS Syntax (Toggle Plain Text)
<tr> <td> <label for "radio1"><input type="radio" id="radio1" name="line01" value=$primary_links[$y]>Line 1</label><br> <label for "radio2"><input type="radio" id="radio2" name="line02" value=$primary_links[$y]>Line 2</label><br> <label for "radio3"><input type="radio" id="radio3" name="line03" value=$primary_links[$y]>Line 3</label><br> <label for "radio4"><input type="radio" id="radio3" name="line04" value=$primary_links[$y]>Line 4</label><br> <label for "radio5"><input type="radio" id="radio4" name="line05" value=$primary_links[$y]>Line 5</label><br> </td> <td> $primary_links[$y]<p> </td> </tr>
Well a label tag works in this way
You place your label's target outside of the label tags
html Syntax (Toggle Plain Text)
<label for="test">Test:</label> <input type="radio" name="test" />
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Make sure you're surrounding your values with quotes or it could create malformed HTML
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
![]() |
Similar Threads
- radio button looses the selected state after validation (JavaScript / DHTML / AJAX)
- need help building radio buttons in a dynamic asp form (ASP.NET)
- How do you switch between forms in vb.net? (VB.NET)
- How do you read radio buttons in XHTML (JavaScript / DHTML / AJAX)
- Shortcuts (Windows tips 'n' tweaks)
- An array of arrays of of radio buttons (JavaScript / DHTML / AJAX)
- help with javascript and forms (PHP)
- Could someone please help me with this logic error?? (VB.NET)
Other Threads in the HTML and CSS Forum
- Previous Thread: Can someone tell me how its calle or works?
- Next Thread: Help with CSS and web design/myspace
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






