Ok, this should work, I think, but it's too late for me to try it now. I FINALLY found an example that showed what I was looking for. Dang php.net didn't show it in all of thier if statement examples. grrrr. Moving on.
One other thing. I've seen in other languages where you have to end the if statement. It didn't appear that you had to end it with and endif on php.net, but I did see some examples where an endif was used. What is required?
Will this work? I'll try it in the morning to see.