PHP variables in a post?

By default, PHP is stripped out of the posts content. You can use this plugin to aleivate this:
http://wordpress.org/extend/plugins/exec-php/

This will give you a quick, easy fix to be able to do it the way you are trying to. I would suggest reading http://codex.wordpress.org/Custom_Fields for the more proper way to do this though.