writing test into asp code

liunx

Guest
Hello!!
How shall I add text in between code?

e.g. Request.Form("full_name") mytext & Request.Form("company_name")

Thanks :rocker:Well if you are constructing a string then simply use &'s..

Request.Form("full_name") & "some text" & Request.Form("company_name")

and if you want that to print out literally to HTML then just wrap the entire thing with a Response.Write( )Ok you re right, but what if I want mytext to begin in a new paragraph? I tried "<p>mytext</p>", but I guess it's wrong cause It didn't work.You could put the <br> in there just to force the break to start a new paragraph. That almost always works for me.This does work...

<%response.write(Request.Form("full_name") & "<p>some text</p>" & Request.Form("company_name"))%>Originally posted by martha.a
Ok you re right, but what if I want mytext to begin in a new paragraph? I tried "<p>mytext</p>", but I guess it's wrong cause It didn't work.
that should work o_O

EDIT: See above
 
Back
Top