$_POST has worked for you before on this server? If not, try $HTTP_POST_VARS['lectureNum'];
If it has, my guess is you have error reporting set to all, and on this php script, the $_POST variable has not been set, so PHP gives you the undefined error. Did you fill out a form (with the method set to post) and the action to this page?
Cgraz