add SetAction() to the form which can set action attribute.