translate html into post data