Can't insert data to database on form submit
your schema

&lt;?php
function form_example_schema() {

    $schema['form_example_table'] = array(
        'description' =&gt; 'Table for form_pokus module',
        'fields' =&gt; array(
            'id'        =&gt; array('type' =&gt; 'serial', 'unsigned' =&gt; TRUE, 'not null' =&gt; TRUE),
            'name'      =&gt; array('type' =&gt; 'varchar','length' =&gt; 30,     'not null' =&gt; TRUE, 'default' =&gt; ''),
            'gender'    =&gt; array('type' =&gt; 'varchar','length' =&gt; 30,     'not null' =&gt; TRUE, 'default' =&gt; ''),
            'message'   =&gt; array('type' =&gt; 'text', 'not null' =&gt; TRUE,   'default'  =&gt; ''),
            'status'    =&gt; array('type' =&gt; 'text', 'not null' =&gt; FALSE ),
            'created'   =&gt; array('type' =&gt; 'int',  'not null' =&gt; TRUE,   'default'  =&gt; 0),          
        ),

        'primary key' =&gt; array('id'),

    );

    return $schema;
}
?&gt;


needs to look like:

function form_example_schema() {

    $schema['form_pokus_table'] = array(
        'description' =&gt; 'Table for form_pokus module',
        'fields' =&gt; array(
            'id'        =&gt; array('type' =&gt; 'serial', 'unsigned' =&gt; TRUE, 'not null' =&gt; TRUE),
            'name'      =&gt; array('type' =&gt; 'varchar','length' =&gt; 30,     'not null' =&gt; TRUE, 'default' =&gt; ''),
            'gender'    =&gt; array('type' =&gt; 'varchar','length' =&gt; 30,     'not null' =&gt; TRUE, 'default' =&gt; ''),
            'message'   =&gt; array('type' =&gt; 'text', 'not null' =&gt; TRUE,   'default'  =&gt; ''),
            'status'    =&gt; array('type' =&gt; 'text', 'not null' =&gt; FALSE ),
            'created'   =&gt; array('type' =&gt; 'int',  'not null' =&gt; TRUE,   'default'  =&gt; 0),          
        ),

        'primary key' =&gt; array('id'),

    );

    return $schema;
}


you had the wrong table name as the schema index.