954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

can't concatenate variables and add text

<%
Dim strfullname, straddress, strcitystatezip, strphone,

strEmail
strfullname = ("Joe Blow")
straddress = ("123 Easy Street")
strcitystatezip = ("Pine Bluff, Arkansas 71601")
strphone = ("(870) 123-4567")
strphone = ("jblow@seark.edu")

Response.write "
"
Response.write strfullname
Response.write "
"
Response.write straddress
Response.write "
"
Response.write strcitystatezip
Response.write "
"
Response.write strphone
Response.write "
"
Response.write strEmail
Response.write "
"
Response.write("My name is" & " " & strfullname )
%>

jchamel
Newbie Poster
7 posts since Sep 2004
Reputation Points: 10
Solved Threads: 0
 
Response.write "
" Response.write strfullname Response.write "
" Response.write straddress Response.write "
" Response.write strcitystatezip Response.write "
" Response.write strphone Response.write "
" Response.write strEmail Response.write "
" Response.write("My name is" & " " & strfullname )

yeah thats right in simple terms (again not sure about the use of brackets, it is not a function response.write is a procedure)

mMessage = "My Name is " & strFullname & " I Live at " & straddress & " in " & strcitystatezip etc etc....

response.write mMessagestrEmail
strfullname = ("Joe Blow")
straddress = ("123 Easy Street")
strcitystatezip = ("Pine Bluff, Arkansas 71601")
strphone = ("(870) 123-4567")
strphone = ("jblow@seark.edu")

although that looks a bit messy you are not even defining strEmail, and I have never used brackets.

strEmail = "joe@blow.com"
strfullname = "Joe Blow"
straddress = "123 Easy Street"
strcitystatezip = "Pine Bluff, Arkansas 71601"
strphone = "(870) 123-4567"
strphone = "jblow@seark.edu"

clartsonly
Newbie Poster
15 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You