Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Trying to include domain into HTML variable

$
0
0

Hi

Not really famlar with asp and trying to add the current domain to URL, however this code throws an error

 	varhtml1  = varhtml1  + " <tr><td><img src='http:// "& <%Response.Write(Request.ServerVariables("server_name"))%> &" /Images/email-logo.gif' /> "

Any idea how i can include the domain name into this line that is alrady wrapped in quote marks? 

Microsoft VBScript compilationerror '800a0401'

Expected end of statement

/includes/dh_qte_display.inc, line 36

varhtml1  = varhtml1  + " <tr><td><img src='http://  <%Response.Write(Request.ServerVariables("server_name"))
-----------------------------------------------------------------------------------------------^

Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>