form submission not working I am just starting out making my module and already running into 2 problems, I believe this is being cause because the form is in a block but I am not entirely sure. This is what I have in my .module file, as you can see I have the function to output the drupal message upon submission however it simply does not do anything. I also get this error when I have the variables in my function.

Notice: Undefined variable: form in zillow_block_view() (line 33 


and

Deprecated function: Call-time pass-by-reference has been deprecated in drupal_load() (line 933 of C:\xampp\htdocs\drupal\includes\bootstrap.inc).


function zillow_block_info(){
        $blocks['zillow_block'] = array(
            'info' => t('Zillow Block'),
        );
        return $blocks;
    }

function zillow_block_view($delta = ''){
    $block = array();
        switch ($delta){
    case 'zillow_block';
        $block['subject'] = t('Zillow Block');
        $block['content'] = zillow_form($form, &amp;$zinfo);
    break;
    }
    return $block;
}

function zillow_form($form, &amp;$zinfo){

    $form['description'] = array(
        '#type' =&gt; 'item',
        '#title' =&gt; t('Get your mortgage rates'),
    );
    $form['rates'] = array(
        '#type' =&gt; 'fieldset',
        '#title' =&gt; t('Mortgage Rates'),
        '#collapsiable' =&gt; TRUE,
        '#collapsed' =&gt; FALSE,
    );
    $form['rates']['street'] = array(
        '#type' =&gt; 'textfield',
        '#title' =&gt; t('Street Address'),
        '#default_value' =&gt; 'Street Address',
    );
    $form['rates']['city'] = array(
        '#type' =&gt; 'textfield',
        '#title' =&gt; t('City'),
        '#default_value' =&gt; 'City',
    );
    $form['rates']['zip'] = array(
        '#type' =&gt; 'textfield',
        '#title' =&gt; t('Zip Code'),
        '#required' =&gt; TRUE,
        '#default_value' =&gt; "Zip Code",
        '#description' =&gt; 'Please enter your zip code',
        '#size' =&gt; 5,
        '#maxlength' =&gt; 5,
    );  
    $form['submit'] = array(
        '#type' =&gt; 'submit',
        '#value' =&gt; 'Submit',
    );
    return $form;
}

function zillow_submit_info($form, &amp;$zinfo){
        drupal_set_message('this is the info the form has submitted. zipcode=@zipcode',
        array('@zipcode'=&gt;$zinfo['values']['zip']));
    }


any help is appreciated.
This line is using the deprecated pass-by-reference:

    $block['content'] = zillow_form($form, &amp;$zinfo);


You can fix that with no ampersand:

    $block['content'] = zillow_form($form, $zinfo);


And I think your submit function should be named zillow_form_submit instead of zillow_submit_info.