The first part of my asp file is working, but I have to concatenate the variables and add text to read this. My name is Joe Blow. I live at 123 easy street in Pine Bluff, AR 71601. My phone number is (870) 123-4567 and my Email address is jblow@seark.edu. I do not know where to put what. I think I have part of it figured out and I am using the book Beginning Active Server Pages 3.0. Can someone take a look at this soon. It is due tonight by midnight. I think I almost have it but do not know how to make a space. The book says to do this & " " . But if you load it on the server it doesn't have the space. I need to add the address, phone and email to this also to concatenate the rest of the variables.
Thanks for your help.
Ok here is my file.

<%Option Explicit%>


<html>
<head>
<title> Five variables</title>
</head>
<body bgcolor="ffffcc">

<%
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 "<br>"
Response.write strfullname
Response.write "<br>"
Response.write straddress
Response.write "<br>"
Response.write strcitystatezip
Response.write "<br>"
Response.write strphone
Response.write "<br>"
Response.write strEmail
Response.write "<br>"
Response.write("My name is" & " " & strfullname )
%>


</body>
</html>

Response.write "<br>"
Response.write strfullname
Response.write "<br>"
Response.write straddress
Response.write "<br>"
Response.write strcitystatezip
Response.write "<br>"
Response.write strphone
Response.write "<br>"
Response.write strEmail
Response.write "<br>"
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 mMessage

strEmail
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"

This article has been dead for over six months. Start a new discussion instead.