I need help on doing Intranet Poll.

I wanted it to be in an Intranet website where I can hold poll. I have done the HTML part (which is easy, no? )

I need assistant on the ASP codes where it needs to check the database for the name of student logged in as I want it to be just one-time voting.