OK, I have a form that posts to a mail script. In that form, there is a hidden field called recipient and (among other things) a field called Email. What I need to do is append that form field onto the hidden field when the form is submitted. So...
and I was thinking something like
I know this isn't quite right, but I am stumped, so any help you folks can give me would be greatly appreciated. Oh, and what I need to end up with is something like
Where the email addresses in the hidden field are separated by a semi-colon.
Willie
Code:
<form action="/scripts/email.asp" method="post" name="form1">
<input type="hidden" name="recipient" value="email@email.com">
<input type="text" name="email" value="">
</form>
Code:
<script type="text/javascript">
function addRecipient()
{
document.getElementById('Recipient').value += ";" + document.getElementById('Email').value
return true
}
</script>
I know this isn't quite right, but I am stumped, so any help you folks can give me would be greatly appreciated. Oh, and what I need to end up with is something like
Code:
<form action="/scripts/email.asp" method="post" name="form1">
<input type="hidden" name="recipient" value="email@email.com;email2@email.com">
<input type="text" name="email" value="">
</form>
Where the email addresses in the hidden field are separated by a semi-colon.
Willie