^^ What year and model do you have? What do you mean the car drove as if the parking brake was on? Did it feel like the rear brakes were applied? Was the engine being rev limited, or was it revving really high, yet going really slowly? Do you hear an alarm/chime when the car is moving? Manual or automatic?
I see three possible scenarios:
1) The parking brake is applied and stuck, even though the handle (I assume) is not in the applied position.
2) The parking brake switch is faulty or stuck. This would explain the light staying on. I've never heard of anything like this, but perhaps your car is newer and limits power if it detects (or thinks, via the switch) the parking brake is engaged.
3) Maybe a problem with the traction control.
Did you try reengaging the hand brake and disengaging again?
Please lets us know more about the issue. Answer the questions above the best you ca. This will help us diagnose the problem quicker.