473,385 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

concatenate contents of variable with string

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 ab*@comcast.net. When I input on the
form ab*@bill.com; ab*@comcast.net it sends to both. I have tried concat()
adn using a + sign to concatenate.
Jul 20 '05 #1
2 2405
"Len Burman" <su*****@joblayoffsupport.com> wrote in message
news:iLJ%b.417152$xy6.2354516@attbi_s02...
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 ab*@comcast.net. When I input on the form ab*@bill.com; ab*@comcast.net it sends to both. I have tried concat() adn using a + sign to concatenate.


The above is ASP(VBScript) so you'd be better of trying in a more
appropriate newsgroup. That said, the above can be written as JScript
which is on-topic for this group, trouble is I don't understand the
description of the problem so I still can't suggest an answer! Try
clearly explaining your requirements and the exact problem you have
encountered.
--
Andrew Urquhart
- FAQ: http://jibbering.com/faq
- Archive: http://groups.google.com/groups?grou...ang.javascript
- Reply: http://www.andrewu.co.uk/about/conta...ject=Re%3A+clj
Jul 20 '05 #2
"Len Burman" <su*****@joblayoffsupport.com> wrote in message news:<iLJ%b.417152$xy6.2354516@attbi_s02>...
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 ab*@comcast.net. When I input on the
form ab*@bill.com; ab*@comcast.net it sends to both. I have tried concat()
adn using a + sign to concatenate.


Could this be VisualBasic? In that case, the concatenation character is &

Robert
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: gwarning! | last post by:
Goal: Have multiple text files, each of various lengths, be concatenated together into one final consolidated text file. Problem: Since the names of the files to be concatenated can change from...
10
by: cppdev | last post by:
Hi All! I want to clear the string contents from sensitive information such as passwords, and etc. It's always a case that password will appear as string at some point or another. And i feel...
3
by: Dave | last post by:
I need to concatenate serveral text files into a larger file. I borrowed some code and patched together a batch file that runs in the command processor and looks like this: echo off chdir...
5
by: Generic Usenet Account | last post by:
I have been to recreate a problem that I am having with strings with the trivial code snippet given below. In the trivial code example, I am reading five lines from a data file, each line having...
1
by: Peter | last post by:
Hi, I know that it is possible to build up a variable name based on a string and another variable name i.e. $varnum=5; ${"varnumber_$varnum"} = 'This variable should be called varnumber_5'; ...
14
by: metamorphiq | last post by:
Hello, I'm a Java programmer, so I'm probably asking a very simple question here, but I have trouble solving it :) I'd like to know how you concatenate multiple (4, in my case) char* in C++,...
6
by: John Kotuby | last post by:
Hi all, I am using a 3rd party program in a VS2005 web project. The tool takes as input a string containing HTML and converts it to RTF. I have been creating a page by dynamically loading...
13
by: sinbad | last post by:
hi, how to concatenate a "hash defined" constant value to another "hash defined" constant string. For example #define ABC 100 #define MYSTR "The value of ABC is" Now i need a string that...
1
by: Tony Bansten | last post by:
Assume I want to concatenate a literal text value and a variable value for a function parameter then the following does NOT work: objWorkbook.SaveAs("D:\work\v1_" + Filename) The variable...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.