I know some folks who bought cars that were flooded from the recent spate of hurricanes along the Gulf of Mexico a couple years back.
They had 3 kids in college at the same time.
They didn't know what they were getting into.
First off, evaluate the situation. Try to figure out how much got soaked. It may not be worth your time and effort.
All fluids need to be changed out. And then have a short interval before changing them again.
The problem has multiple facets. Water, when it evaporates, leaves behind whatever it was carrying. Ultra-fine silt, algae, and if it is salt water... SALT. None of these things is good inside an engine, and more importantly inside a electronic device.
The problem becomes getting out that which was "washed in", and trouble-shooting electrical gremlins will kill a car faster than any other method I know.
If it is only your carpet that got wet, then you are probably OK. However I would take off the door panels and try to figure out how much of it got wet before I spent much time and money into this project.
It could be a money pit.