I need to set up a number conversion thing and don't know how.
I'm working on a role-playing game and need a way to let the members easily convert ages from human to the equivalent of the other races in the game and vice versa. I'm thinking of having something along the lines of a text box to put the number to be converted in, some way to select whether you're changing the number to or from human years, a list of races for you to choose from, a button for when you're done, and a text box that shows the result. I know how to set up the various form elements, but I don't know how to write the code that takes the selected options, does the math, and displays in the the result.
If someone can either explain how to do it or give me a link to a place that teaches you that sort of thing, I'd really appreciate it. It's high time I learned how to do this sort of thing!