How Can I merge char variable

Hello All
thank for your answers and help, but I am afraid it did not solve my issue.

I am sorry if I have been not clear enough.

Here is a resume

// GPS
char coords[100];
char lon[15];
char lat[15];
char alt[15];
char time[20];
char vel[15];
char msg1[5];
char msg2[5];

This collect the GPS coords

gps.getPar(lon,lat,alt,time,vel);

Then from now, I have the longitude (lon) the latitude (lat) etc. No worries for sppeed and course, I will see it later.

I have to send the cords to a remote server and for this I use this function

 inet.httpPOST(host, port_post, path_post, coords , "Result", 1000);
      delay(10000);

Coords is the char variable which must contain the value.

If I code

coords = "lat="+lat+"&long="+lon+"&alt="+alt+"&vel="+val+"&time="+time;
inet.httpPOST(host, port_post, path_post, coords , "Result", 1000);

This works fine, but now I have to replace the "10.000", "20.000" etc by the value provided by the GSP.
So I tryied this

coords = "lat="+lat+"&long=20.0000&alt=30.000&speed=&vel=40.000&time=20130609062400.097;

but this does not work.
I have this error message

Invalid operands of types 'const char[5]' and 'char[15]' to binary 'operator' +

That's it
:slight_smile: