In a registration form, the key value should be set to 0.
if you are still getting the generic error message, try adding the following code at line 1 to turn error reporting on:
<?php
error_reporting(E_ALL);
ini_set('dislpay_errors','on');
?>
this should display the actual error, if not, you will need to contact the host to look into the servers error logs.