Disclosed is a method for styling, straightening or curling hair, comprising contacting the hair with a composition comprising a hair styling effective amount of a poly(vinylaminevinylformamide)copolymer and applying heat, at a temperature of at about 100 degrees Celsius for at least 1 second, to the hair.