May I ask where your form is? WHere you submit the information?
YOu can't reference any posted var of a form until you post it, that's why you're getting the error.
There are no <form> tags, and thus no form to submit. And since the form isn't submitted, the $_POST array is empty... hence the error.