GET to POST method in visit_edit.js