First implementation of the post function on both serverside and html