Are your pictures posting upside down and sideways? You might have turned your iPhone or iPad upside down or sideways to take the picture. The software that is loaded on your computer adjusts the view and shows them right side up until you post them online. This is one reason I am happy to have an Android phone. ;)
I think you need to think of the phone as a camera - it is designed to take pictures in landscape format not portrait. I don't think I've ever seen anyone turn their phone to take a picture in landscape orientation!