Badami (BDM) is the nearest railway station for Pattadakal and Aihole. There are a few daily and weelky trains from Bangalore to Badami.
For some trains stop is at Bagalkot (BGK) which is about 25km north of Badami.
The best option is the Gol Gumbaz Express (Train No:16535) that leaves Bangalore by evening and reaches Badami in the morning.
The second direct train from Bangalore to Badami is the Yesvantpur Barmar AC Express (Train No: 14805) Though its a weekly once (Mondays) train and reaches Badami in late night.
Alternatively, if you are willing to break the journey in two, book in one of those Hubli (UBL) bound trains from Bangalore. Get down at Gadag Jn (GDG). There are many trains passing through Gadag towards Bagalkot (BGK) via Badami, Including a few passenger trains.
Checkout also your options to travel Bangalore to Badami by bus.
Mysore-Sainagar Shirdi Express
Yesvantpur Barmar AC Express
Gol Gumbaz Express
Also see the irctc.co.in website for updated and train timings.
Train Route Map for Badami, Pattadakal and Aihole. Badami is the nearest railway station
See Also : How to Reach Pattadakal
Well, this is piece for those of you who are new to the concepts of Hinduism. To that extend this is an oversimplified narration to make the understanding easier. For those who are keen to know more, the scope and resources are endless. So that's a disclaimer to begin with! Though it is referred with a single common name , Hinduism, it is in fact a conglomeration of many sects, sub sects , often with its own pantheons, beliefs and religious practices. Unlike many religions, Hinduism doesn't have definite a founder. The religion practically 'evolved' over 4000 years or so into its present form.
Lord Shiva slaying Andhakasura, the blind demon, is a popular mythological theme carved on many Shiva Temples. At Pattadakal you can see a giant image in the south side of the Galaganatha Temple. The story goes like this. While in the mount Mandhara a baby was born to Parvati and Shiva. Shiva was in a meditating posture and Parvati closed his eyes mischievously from behind. The boy appeared out of Parvati's sweat. Shiva explains to Parvati that since his eyes were closed, the baby was born blind and calls him Andhaka (the blind). Since he posed devilish qualities he was called Andhakasura (the blind demon ).
Chalukya Express connects Mumbai with Bangalore. That is Chalukya Express operates between Yesvantpur Junction in Bangalore and Dadar in Mumbai.The train is named so because its route passes is right through the erstwhile Chalukya Empire heartland.