handle the submit button Hello guys i am trying to add data to one of my tables... when the submit button is pressed.
I have the following script:

function review_m_admin_settings_form($node){
    $form = array();

    $form['overview'] = array(
        '#markup' =&gt; t('This interface allow adminss to manage general content types and vote them up!'),
    );
    $form['select'] = array(
        '#type' =&gt; 'select',
        '#title' =&gt; 'Choose a content type!',
        '#options' =&gt; node_get_types('names'),
    );
    $form['mark'] = array(
        '#type' =&gt; 'textfield',
        '#title' =&gt; 'Give a mark to the content type(1 to 10)!',
        '#size' =&gt; 60,
        '#maxlength' =&gt; 2,
    );
    $form['text'] = array(
        '#type' =&gt; 'textarea',
        '#title' =&gt; 'leave a feedback!',
        '#cols' =&gt; 60,
        '#resizable' =&gt; FALSE,
        '#rows' =&gt; 5,
    );
    $form['created'] = array(
        '#type' =&gt; 'textfield',
        '#title' =&gt; 'Enter the date!',
        '#size' =&gt; 60,
        '#maxlength' =&gt; 10,
    );
    $form['submit'] = array(
        '#type' =&gt; 'submit',
        '#value' =&gt; t('Send review'),
        '#weight' =&gt; 10,
    );
    $form['action'] = $url;
    return $form;
}


this is my form.... i called the function with the _submit at the end .. but it doesn't work!

    function review_m_admin_settings_form_submit($form, &amp;$form_state){
    if(!isset($node-&gt;text)){
        $node-&gt;text = '';
        }
        if(!isset($node-&gt;created)){
            $node-&gt;created = '';
        }
        db_query(
            'INSERT INTO {review_m} (rid, nid, uid, mark, text, created)'
            . "VALUES (%d, %d, %d, '%s', '%s')",
            $node-&gt;rid,
            $node-&gt;nid,
            $node-&gt;uid,
            $node-&gt;mark,
            $node-&gt;text,
            $node-&gt;created
        );
}


Help!
You're trying to assign a value to an object property without declaring the object.  Try this:

function review_m_admin_settings_form_submit($form, &amp;$form_state){
    $node = new stdClass();


There's actually not any need to check if $node->text isset either because we know we haven't set it already. 

You also need to pull your form values from the $form_state variable.  For example:

$node-&gt;text = $form_state['values']['text']