use method to submit post