N
nick
Hi in PHP you can do this:
echo "you're logged in as {$username}"
is something similar possible in ASP?
echo "you're logged in as {$username}"
is something similar possible in ASP?
Presuming VBScript and a value having been assigned to username.....
Response.Write ("you're logged in as " & username)
Frankly, I thought that his answer implied that you couldn't (Bob is a mannick said:Yes I know that, but is it possible to do something like "you're
logged in as {username}"?
Frankly, I thought that his answer implied that you couldn't (Bob is a man
of few words).
What you CAN do is use the Replace function to substitute values for
placeholders:
s="you're logged in as {$username}"
username = "something"
Response.Write Replace(s, "{$username}", username)
nick said:Er.. if he really is a man of few words, all he had to say was "NO".
I think he just assumed I am a complete noob to ASP
Oh, you're a real piece of work.
Except the answer isn't "NO" You said -
I showed you something similar.
ummm.... No.
Which is effectively what you are doing in PHP.
I understood your question exactly as it was asked.
nick said:Simple = "blah blah" . $var
Bit more advance = "blah blah {$var}" or "blah blah $var"
I asked: Can you do "blah blah {$var}"?
You "answered": Yes, how about "blah blah " & var
LOL!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.