February 27th, 2013, 01:18 PM
We're not going to keep doing your homework for you. That's not how you learn.
Read up on the PHP switch() statement, or if/elseif.
Also read the new user guide to learn how to post a question. Yours are poorly worded, unformatted, and break the forum rules.
This thread is closed. Ask Professor Shafer if you can't figure it out. You're not going to have a very good time later in the year if you can't get these kinds of basic examples.
And yes, I know your professor.
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question
or you're a Help Vampire.
Trying to argue intelligently? Please read this.