the 500 error message is top vague to give any clues on what the problem is.
Try adding the following code at line of the page:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
this may display the real error, if not, you will need to contact the host, and see if they can track the error down in the error logs.