Sending a variable over ethernet shield

I am working with the latest arduino and an ethernet shield.

I am trying to adapt the code from here: http://bildr.org/2011/06/arduino-ethernet-client/

I have a Ping sensor that returns the value of "x", which is the distance in inches. How can I pass this variable to the php page that I hit with the ethernet shield?

Thanks, and apologies if this is the wrong section of the forum. I have not posted in quite a while.

I am working with the latest arduino and an ethernet shield.

Which ethernet shield?

I have a Ping sensor that returns the value of "x", which is the distance in inches. How can I pass this variable to the php page that I hit with the ethernet shield?

client.print(x);