Ethernet Shield Library

I have some code to send data to a server over ethernet with tcp connection.

It connects fine, but if I try to use multiple prints, the server only receives the first print. eg:
double a=5.3;
Serial.print("ph=");
Serial.print(a);

Only "ph=" is received. Why is this, and what is the best way to solve this issue? I tried sprintf() but am running into issues with it.

I have some code to send data to a server over ethernet with tcp connection.

And that code is?

It connects fine, but if I try to use multiple prints, the server only receives the first print. eg:
double a=5.3;
Serial.print("ph=");
Serial.print(a);

Serial is not the right class to be using to send data via the Ethernet shield.

Why is this

Because you are doing something wrong on one end or the other (or maybe both).

and what is the best way to solve this issue?

Stop doing whatever it is you are doing wrong.

I tried sprintf() but am running into issues with it.

I have issues with the pulseIn function, too. Can you help me with them? I won't tell you what they are, either.