winsock's senddata & getdata problem

Dear friends,
I have try to make a simple program that asks users to input sth (name, age, etc) in computer A.
And then, the program (in comp A) sends the collected data to comp. B via winsock.
I expect the program in comp B to list the result as follow.