getpost function: regist