concatenate contents of variable with string

From: Len Burman (support_at_joblayoffsupport.com)
Date: 02/27/04


Date: Fri, 27 Feb 2004 15:53:39 GMT

I have some code in a form which inputs a friends email address and when you
submit it sends the message to the person at the address. I want to be able
to email to the variable name and also a hard coded address. When I actually
input two addresses, it sends to both. The partial code reads:
Set objMail = CreateObject("CDONTS.NewMail")
      objMail.From= request.form("youremail") 'Specify sender's address
      objMail.To=request.form("yourfriendemail")

yourfriendemail is a variable gotten from a form. I want to replace it with
the contents of yourfriendemail and abc@comcast.net. When I input on the
form abc@bill.com; abc@comcast.net it sends to both. I have tried concat()
adn using a + sign to concatenate.



Relevant Pages

  • concatenate contents of variable with string
    ... I have some code in a form which inputs a friends email address and when you ... yourfriendemail is a variable gotten from a form. ... adn using a + sign to concatenate. ...
    (comp.lang.java.programmer)
  • concat string with contents of variable
    ... I have some code in a form which inputs a friends email address and when you ... yourfriendemail is a variable gotten from a form. ... adn using a + sign to concatenate. ...
    (comp.lang.java)
  • Re: concatenate contents of variable with string
    ... -Mike Scovetta ... > I have some code in a form which inputs a friends email address and when you ... The partial code reads: ... > yourfriendemail is a variable gotten from a form. ...
    (comp.lang.java.programmer)
  • Re: concatenate contents of variable with string
    ... > I have some code in a form which inputs a friends email address and when you ... > yourfriendemail is a variable gotten from a form. ... This looks a heck of a lot more like VBScript/ASP than Java to me. ... the concat operator is an ampersand. ...
    (comp.lang.java.help)
  • Re: concatenate contents of variable with string
    ... "Len Burman" wrote in message ... > I have some code in a form which inputs a friends email address and when ... > yourfriendemail is a variable gotten from a form. ... Any string operation results in a brand new String, ...
    (comp.lang.java.programmer)