Maybe a good place to start would be with ASP programming and/or Visual Basic. Or maybe C# although that's not very webby. If you want something more platform independent then PHP could be the way to go.