field as mailto subject (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


walrus -> field as mailto subject (10/30/2003 4:24:57)

I have this small script which works fine
if Trim(FP_Field(fp_rs,"Email")) = "" then
response.write ""
else
response.write "<a href=""mailto:"&FP_Field(fp_rs,"Email")&"""><img src='/images/email.gif' border='0'></a>"
end if
%>

I would like to add two or three more fields from the database to appear in the subject line. I can do this in a simple mailto but I can't work out the syntax when a field is involved.
Any help please?




walrus -> RE: field as mailto subject (10/30/2003 5:43:28)

managed to work out
response.write "<a href=""mailto:"&FP_Field(fp_rs,"Email")&"?subject="&FP_FieldVal(fp_rs,"Street")&" £"&FP_FieldVal(fp_rs,"Rent")&"""><img src='/images/email.gif' border='0'></a>"

I refered to a previous tutorial I got from Spooky
http://www.frontpagewebmaster.com/fb.asp?m=132213&key=mailto
about where all the quotes should go. Very useful!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125