Just as an incidental mention too, make sure you're using the right quotes when outputting your data. As i'm assuming you're using echo and just populating the elements with the data values.
I definitely would say PHP is your best bet, I've dabbled in both ASP and PHP and PHP is just so much nicer to work with, and just as versatile... Plus it's free! :)