submit custom form drupal 7 I've created one custom module to display product review form on custom created block but i'm not able to submit form and also I can't see form name while I checked with inspect element. give me solution please. 
Here is my code for it.

function my_module_block_view($delta = '') {
  $block = array();

  switch ($delta) {
    case 'my_module_config':
      $block['subject'] = '';
      $block['content'] = my_module_form();
      break;
  }
  return $block;
}

function my_module_form($form, &amp;$form_state) {

  $form['rating'] = array(
    '#type' =&gt; 'label',
    '#title' =&gt; t('Rating'),
    '#collapsible' =&gt; FALSE,
    '#collapsed' =&gt; FALSE,
  );

  $options = array(1 =&gt; t('1'), 2 =&gt; t('2'), 3 =&gt; t('3'),);
   $form['rating']['options'] = array(
    '#type' =&gt; 'select',
    '#title' =&gt; t('Rating'),
    '#options' =&gt; $options,
    '#description' =&gt; t('Give your rating.'),
    //'#access' =&gt; $admin,
  );

  $form['comments'] = array(
    '#type' =&gt; 'label',
    '#title' =&gt; t('Comments'),
    '#collapsible' =&gt; FALSE,
    '#collapsed' =&gt; FALSE,
  );
  $form['comments']['prod_comments'] = array(
   '#type' =&gt; 'textarea', 
   '#title' =&gt; t('Comments'), 
   '#cols' =&gt; 60, 
   '#rows' =&gt; 5,
  );

  $form['submit_button'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('Submit Review!'),
  );
  $form['#submit'][] = 'my_module_submit';
  return $form;
}
function my_module_submit($form, &amp;$form_state) {
    drupal_set_message(t('The form has been submitted.'));
}
You wrote
$block['content'] = my_module_form();
which mean you called a function which return just an array.

You need to tell drupal that i am creating a form, for this use drupal_get_form

case 'my_module_config':
  $my_module_form = drupal_get_form('my_module_form');
  $my_module_form = drupal_render($my_module_form);
  $block['subject'] = '';
  $block['content'] = $my_module_form;
  break;