Pretty much the only thing the movie 'Starship Troopers' had in common with the book is some names - the title, a few characters, and the 'bad guys'.
The movie was illogical junk.
The book was rather interesting, and made a good case for a society based on responsibility and duty - rather like the Roman republic. In that sense, Starship Troopers (the book) is a rewrite of history in future terms.
If you really want to see a good commentary, somewhat sarcastic and satirical, of the movie, find the review by James MacDonald.