I agree with computerpulse and would like to add there might be a loose wire thats getting moved when the gear shift lever is moved.this wire may or may not be under the dash.It could be outside around the transmission shift cable.
There's a speed sensor located between the cooler lines on the top of the transmission you might need to replace also.I got the new version for $20 at a Dodge dealer.I think they goofed on the price though,another dealer quoted me on for $50 but were out of stock.
