Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Pass multiple email addresses to a hidden field in a form

Reply
Thread Tools

Pass multiple email addresses to a hidden field in a form

 
 
james00_c@yahoo.com
Guest
Posts: n/a
 
      06-21-2005
Greetings-

I need to pass multiple email addresses to a "sendto" hidden field in a
form. I need to do that because "CC" and "BCC" are not an option. One
address would be hardcoded and another say
formuser@xyz would be a user input. A sample of my form looks like:

<table>
<tr>
<td width="100%"> <form name="fname" method="POST"
action="http://cgi_server/cgi-bin/mail.cgi">
<input type="hidden" name="sendto"
value="">

<!-- I would like "value" to end up with
",document.fname.email.value" or
",". In other words both the
webmaster and formuser should receive contents of the form. -->

<input type="hidden" name="subject" value="Request for
Program Information">
<input type="hidden" name="location"
value="thankyou.html">

<table border="0" width="99%">
<tr>
<td width="37%" valign="top"><p>E-mail
address:</p></td>
<td width="63%"><input type="text" name="email"
size="50"></td>
</tr>
</table>

<p align="center">
<input type="submit" value="Send Request" name="B0">
<input type="reset" value="Clear Form" name="B1">
</p>
</form></td>
</tr>
</table>


Please note that using the form user's Windows email client is not an
option. Thanks very much for any tips!

Regards,

James

 
Reply With Quote
 
 
 
 
RobG
Guest
Posts: n/a
 
      06-21-2005
wrote:
> Greetings-
>
> I need to pass multiple email addresses to a "sendto" hidden field in a
> form. I need to do that because "CC" and "BCC" are not an option. One
> address would be hardcoded and another say
> formuser@xyz would be a user input. A sample of my form looks like:
>
> <table>
> <tr>
> <td width="100%"> <form name="fname" method="POST"
> action="http://cgi_server/cgi-bin/mail.cgi">
> <input type="hidden" name="sendto"
> value="">


<form ... onsubmit="
this.sendto.value += ',' + this.email.value;
">

>
> <!-- I would like "value" to end up with
> ",document.fname.email.value" or
> ",". In other words both the
> webmaster and formuser should receive contents of the form. -->
>

[...]

> <td width="63%"><input type="text" name="email"
> size="50"></td>
> </tr>
> </table>
>

[...]


--
Rob
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate Hidden field on post back and retrieve value from Hidden Field Rick ASP .Net 3 04-13-2010 05:38 PM
Pass hidden form field value to another form field to insert in db GavMc ASP General 4 09-22-2005 06:33 PM
writing from hidden field to text field repost Roy Adams Javascript 3 12-21-2004 02:32 PM
writing from hidden field to text field Roy Adams Javascript 1 12-20-2004 03:47 AM
ADSI/ASP: How to pass distinguishedName as hidden form field? Bharat Suneja ASP General 0 09-10-2004 03:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57