printing variables in formated text?

That's not at all what I'm saying.

Having a lot of lines like:

client.println("<p>The phone number of John Smith is ");

Consumes RAM, unless you are very careful. That line is 40 bytes of the 2048 of RAM you have available...