My car shuts off when I put my foot on the brake?

I have a 2001 Ford Focus. My car windows won't go up or down, the car start but the once I put my foot on the brake it goes off. What's the problem? And how much will it cost to fix?

Verify that your battery is charged. Second if it's a manual transmission ou have to be in the clutch otherwise the car will shut off and you have to restart it again.

Roggy, not one thing you said is true or makes sense. Wouldn't you think that by starting the car is verification that the battery is charged? I can't believe I'm doing this.