Form timing out with drupal_set_message I am getting some type of timing out error and not sure how to fix it or even where to begin, the error looks something like this http://pastebin.com/M8Wz4KEY

/** 
 * Block info 
 */ 

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

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

/**
 * Form Info
 */

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']['state'] = array(
        '#type' =&gt; ('select'),
        '#title' =&gt; t('Choose One'),
        '#options' =&gt; array( 
            'CA' =&gt; t('California'),  
        ),
        '#required' =&gt; TRUE

    );
    $form['submit'] = array(
        '#type' =&gt; 'submit',
        '#value' =&gt; 'Submit',
    );
    return $form;
}

/**
 * Api info 
 */

function zillow_api_info($form, &amp;$zinfo){
    $state_value = $zinfo['values']['state'];
    $zillow_id = 'Xx-xxxxxxxx-xxxxxx';
    $xml = file_get_contents('http://www.zillow.com/webservice/GetRateSummary.htm?zws-id='.$zillow_id.'&amp;'.$state_value.'');

    foreach($xml-&gt;response-&gt;today-&gt;rate as $todays_rates){
        print $todays_rates;
        '&lt;/br&gt;';
    }

    foreach($xml-&gt;response-&gt;lastWeek-&gt;rate as $lastWeeks_rates){
        print $lastWeeks_rates;
        '&lt;/br&gt;';
    }

    return zillow_api_info();
}   

/**
 * Submit Info  
 */

function zillow_form_submit($form, &amp;$zinfo){
        drupal_set_message(t('this is the info the form has submitted. zip=@zipcode, states=@states, todaysrates=@todaysrates',
        array('@states' =&gt; $zinfo['values']['state'], '@todaysrates' =&gt; zillow_api_info())));
    }
There's an infinite loop in your code...

The function zillow_api_info() returns a call to itself, which will result in an infinite recursion from which PHP can't escape. As you're calling this function during the call to drupal_set_message() I'd guess that's why you're getting the timeout.

FYI You're not passing the @zipcode replacement to the t() function, it shouldn't cause an error but it might be a bug :)