If the Lord of all, the Highest of the High is right there, we dare not do, think, or feel anything that is unholy. If the Creator of Love and Beauty is right there in front of us, we must let that love that has been created in all of us to flow uninhibited from our heart of Hearts to the Divine Beloved. God of all alone is beautiful. Every one else's beauty is borrowed and indeed a very pale imitation of this Splendor. The act of prayer involves standing, kneeling and bowing in a certain pattern, but what goes into it is an individual choice.
Prayer is different from meditation in one respect.
You never close your eyes, because you never want to go in a trance. You want to stand before your Beloved with all of you, so trance isn't desirable. This act of ritualized prayer is followed by silent prayer that is done in one's heart while sitting on mosque's floor. After this 4-5 minutes of silent prayer, you can go on doing other prayers or go back to your living. The other kind of prayer is the non-ritualized prayer.