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
Navigation:
[Reply to this message]
|