Thank you for the information, however it doesn't answer my question. I need to write am html file that asks for a specific location and depending on that location sends the recipient email address. I can't put a specific address is the hidden field, because it is not known until the individual completing the form enters it. Is there a way to have the field populated under a function? 
 
Diana M Weaver
Application Specialist
Information Technology
Phoebe Services
610.794.5046
1925 Turner St
Allentown PA 18104
dweaver@phoebe.org

>>> tas-nms-cgi-support@puesnada.us 9/25/2006 11:34:17 AM >>>
On 9/25/06, taz <dweaver@phoebe.org> wrote:
>
> I have created a form and have the action sent to mailscript.cgi. In the form
> I have a drop down box with options. Depending on the option they choose the
> email should be sent to a specific individual. I have a function with a case
> statement that is invoked with an onBlur statement in the select option. The
> function is below:
> <!--
>
> function getLoc() {
>   var loc
>
>     Select Case (loc)
>          Case "0"
>           loc = "option1@phoebe.org"
>          Case "1"
>           loc = "option2@phoebe.org"
>          Case "2"
>           loc = "option3@phoebe.org"
>         End Select
>
>         document.name(recipient).value = loc;
> }
> //-->
>
> document.name(recipient).value is set to the correct email address. Why
> doesn't it like this function? Is there a different way to have the
> recipient field populated based on the choice?

Use the method outlined in EXAMPLE 4 of the EXAMPLES file, which is
bundled with the NMS FormMail program. Reading EXAMPLE 3 first might
be a good idea. If you need to download the program and documentation
again, you can do so at the NMS SourceForge page:

http://nms-cgi.sourceforge.net/scripts.shtml

-Todd

> I am not to familiar with cgi scripts.
> --
> View this message in context: http://www.nabble.com/MailScript.cgi----Recipient-questions-tf2331431.html#a6485960
> Sent from the nms-cgi-support mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> To unsubscribe from this mailing list visit
> https://lists.sourceforge.net/lists/listinfo/nms-cgi-support
> and follow the simple instructions.
>

NOTICE: This confidential message/attachment contains information intended for a specific individual(s) purpose.  Any inappropriate use, distribution or copying is strictly prohibited. If received in error, notify the sender and immediately delete this.