Reply to Re: Use of radio buttons on forms

Your name:

Reply:


Posted by Toby Inkster on 02/08/06 01:29

maurice wrote:

> Two buttons - one marked Secretary the other marked Chairman. Depending
> upon the settings of the buttons the recipient's email address changes?
> For instance, if Secretary is set, the recipient email address is set
> to sexy.sue@bloggs.com otherwise it is set to grumpy@bloggs.com - or
> does it HAVE to be done as part of the CGI script?

It's a very good idea to do it as part of the CGI script. But...

Assuming you have something like:

<input type="hidden" name="recipient" value="me@example.com">

Change it to:

<div>
<b>Recipient:</b>
<ul>
<li><label><input type="checkbox" name="recipient"
value="sexy.sue@example.com"> Secretary</label>
<li><label><input type="checkbox" name="recipient"
value="grumpy@example.com"> Chairman</label>
</ul>
</div>

PS: Please use example.com, example.net or example.org for examples. If
you use a real domain name (as you have above) it could result in
unintended consequences for that domain. e.g. someone called Sue who has
an account at bloggs.com might be getting a load of SPAM because her
address was posted on Usenet.

--
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

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