gas pedal failure on 1994 BMW 325is

i was leaving home and my gas pedal is not working. it is just going to the floor. the accelerator under the hood still works. what could be wrong with my gas pedal?

Asked by for the 1994 BMW 325is
Either your accelerator pedal has broken or if you have a "drive by wire" model it could bel a throttle actuator fault.