A driver trapped in a burning car was saved by the quick reactions of passers-by.