Reply to Re: Radio Buttons & Hyperlinks?

Your name:

Reply:


Posted by Toby Inkster on 09/24/06 13:41

Cerebral Believer wrote:

> Anyone know if it is possible to use one hyperlink and a selection of radio
> buttons to send a person to a particular page depending on what radio button
> they check

It's certainly possible with a bit of Javascript attached to the "onclick"
event of the hyperlink, but there are probably better ways of allowing the
user to select between two different formats.

One method might be to use a submit button to submit the radio button
selection. A bit of CSS could style this to look almost exactly like a
regular link.

A better method might be to abandon the radio buttons altogether. If you
simply want to offer a choice between two different formats, you could use
two different links:

<ul>
<li><a href="high/">Broadband version</a></li>
<li><a href="low/">Dial-up version</a></li>
</ul>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация